From ed241ef9bc4e36137ecf835c545fdd44dddc426f Mon Sep 17 00:00:00 2001 From: Samuel de Medeiros Queiroz Date: Fri, 19 Sep 2014 12:29:39 -0300 Subject: Add support to inherited project role grant calls Once inherited project role grant calls are implemented on python-keystoneclient, python-openstackclient also should support such calls. This patch add such support as well as its related tests. Co-Authored-By: Raildo Mascena Change-Id: Id72670be8640e5c6e2490a6ef849e9ec3493b1a9 Implements: blueprint hierarchical-multitenancy --- openstackclient/identity/common.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openstackclient/identity/common.py') diff --git a/openstackclient/identity/common.py b/openstackclient/identity/common.py index 6eca02ba..2638b797 100644 --- a/openstackclient/identity/common.py +++ b/openstackclient/identity/common.py @@ -139,3 +139,12 @@ def add_project_domain_option_to_parser(parser): 'This can be used in case collisions between project names ' 'exist.') ) + + +def add_inherited_option_to_parser(parser): + parser.add_argument( + '--inherited', + action='store_true', + default=False, + help=('Specifies if the role grant is inheritable to the sub projects') + ) -- cgit v1.2.1