diff options
| author | Samuel de Medeiros Queiroz <samuel@lsd.ufcg.edu.br> | 2014-09-19 12:29:39 -0300 |
|---|---|---|
| committer | Raildo Mascena <raildo@lsd.ufcg.edu.br> | 2015-06-22 11:05:01 -0300 |
| commit | ed241ef9bc4e36137ecf835c545fdd44dddc426f (patch) | |
| tree | 447e645cad8a7e56896bad3b7f6c94b83be337ae /openstackclient/identity/common.py | |
| parent | 3120a0bd2ac2dd8cf918abfeae8357e20ac6b34e (diff) | |
| download | python-openstackclient-ed241ef9bc4e36137ecf835c545fdd44dddc426f.tar.gz | |
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 <raildo@lsd.ufcg.edu.br>
Change-Id: Id72670be8640e5c6e2490a6ef849e9ec3493b1a9
Implements: blueprint hierarchical-multitenancy
Diffstat (limited to 'openstackclient/identity/common.py')
| -rw-r--r-- | openstackclient/identity/common.py | 9 |
1 files changed, 9 insertions, 0 deletions
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') + ) |
