diff options
| author | Lance Bragstad <lbragstad@gmail.com> | 2017-11-30 22:42:55 +0000 |
|---|---|---|
| committer | Lance Bragstad <lbragstad@gmail.com> | 2018-06-04 20:09:14 +0000 |
| commit | 8bfa180430354d1db11b11a3443486fe04415443 (patch) | |
| tree | c289f85398a9c29d66e0b45c81dd4630c14483c6 /openstackclient/identity/v3/token.py | |
| parent | 47d0d0e0c02529cf6516532758e1dc565ef7cc1a (diff) | |
| download | python-openstackclient-8bfa180430354d1db11b11a3443486fe04415443.tar.gz | |
Add system role functionality
This commit adds the necessary bits to expose system role
assignments to openstackclient via python-keystoneclient.
bp system-scope
Depends-On: Iecbcbf020a15f2bec777334c648d4477f89f3b2c
Change-Id: I261e84700b51e8715eaebdc3f8f8bc46b68542c2
Diffstat (limited to 'openstackclient/identity/v3/token.py')
| -rw-r--r-- | openstackclient/identity/v3/token.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openstackclient/identity/v3/token.py b/openstackclient/identity/v3/token.py index effb9e35..1933ecad 100644 --- a/openstackclient/identity/v3/token.py +++ b/openstackclient/identity/v3/token.py @@ -192,6 +192,12 @@ class IssueToken(command.ShowOne): data['user_id'] = auth_ref.user_id if auth_ref.domain_id: data['domain_id'] = auth_ref.domain_id + if auth_ref.system_scoped: + # NOTE(lbragstad): This could change in the future when, or if, + # keystone supports the ability to scope to a subset of the entire + # deployment system. When that happens, this will have to relay + # scope information and IDs like we do for projects and domains. + data['system'] = 'all' return zip(*sorted(six.iteritems(data))) |
