From 5eb7e626b18b033f97f3cf10f2791529f9d75789 Mon Sep 17 00:00:00 2001 From: Henry Nash Date: Tue, 23 Feb 2016 11:42:40 +0000 Subject: Add support for domain specific roles A role entity can now be specified as domain specific. Closes-bug: #1606105 Change-Id: I564cf3da1d61f5bfcf85be591480d2f5c8d694a0 --- openstackclient/identity/common.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'openstackclient/identity/common.py') 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='', + 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', -- cgit v1.2.1