diff options
| author | Henry Nash <henryn@linux.vnet.ibm.com> | 2016-02-23 11:42:40 +0000 |
|---|---|---|
| committer | Steve Martinelli <s.martinelli@gmail.com> | 2016-08-10 20:32:55 +0000 |
| commit | 5eb7e626b18b033f97f3cf10f2791529f9d75789 (patch) | |
| tree | 1b371a8835abe4dfbf82dbc8003a08621138bb5b /openstackclient/identity/common.py | |
| parent | 0b91368164acc596bf97fe4073083e26892f5b1a (diff) | |
| download | python-openstackclient-5eb7e626b18b033f97f3cf10f2791529f9d75789.tar.gz | |
Add support for domain specific roles
A role entity can now be specified as domain specific.
Closes-bug: #1606105
Change-Id: I564cf3da1d61f5bfcf85be591480d2f5c8d694a0
Diffstat (limited to 'openstackclient/identity/common.py')
| -rw-r--r-- | openstackclient/identity/common.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/openstackclient/identity/common.py b/openstackclient/identity/common.py index 1e40f396..1f645b7d 100644 --- a/openstackclient/identity/common.py +++ b/openstackclient/identity/common.py @@ -201,6 +201,16 @@ def add_project_domain_option_to_parser(parser): ) +def add_role_domain_option_to_parser(parser): + parser.add_argument( + '--role-domain', + metavar='<role-domain>', + help=_('Domain the role belongs to (name or ID). ' + 'This must be specified when the name of a domain specific ' + 'role is used.'), + ) + + def add_inherited_option_to_parser(parser): parser.add_argument( '--inherited', |
