diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-06-17 21:35:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-06-17 21:35:42 +0000 |
| commit | ba825a4d5c04e2e6fd8a82ebbfb2f71a85e683aa (patch) | |
| tree | e562fde72064e65efca04485b2b0d6f618de5aaa /openstackclient/shell.py | |
| parent | b83d0200d98d71470404e430ffbd040b40cd4060 (diff) | |
| parent | fe0c8e955be0331aef9cc6847c9bddc43ce66d92 (diff) | |
| download | python-openstackclient-ba825a4d5c04e2e6fd8a82ebbfb2f71a85e683aa.tar.gz | |
Merge "Do not prompt for scope options with default scoped tokens"
Diffstat (limited to 'openstackclient/shell.py')
| -rw-r--r-- | openstackclient/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index 12a63af2..49a06040 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -443,12 +443,12 @@ class OpenStackShell(app.App): cmd.__class__.__name__, ) if cmd.auth_required: - if hasattr(cmd, 'required_scope'): + self.client_manager.setup_auth() + if hasattr(cmd, 'required_scope') and cmd.required_scope: # let the command decide whether we need a scoped token - self.client_manager.setup_auth(cmd.required_scope) + self.client_manager.validate_scope() # Trigger the Identity client to initialize self.client_manager.auth_ref - return def clean_up(self, cmd, result, err): self.log.debug('clean_up %s: %s', cmd.__class__.__name__, err or '') |
