diff options
| author | Zuul <zuul@review.opendev.org> | 2020-01-13 19:27:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-01-13 19:27:52 +0000 |
| commit | cc93be81c91f8ef1732286e9c4a8485444f3e1db (patch) | |
| tree | 7c5888b633a1fc57fec4ebc92283a9e9c451d760 /openstackclient | |
| parent | 08c57260e4ef17150b67ef0a9493af2a4d8bf4f6 (diff) | |
| parent | 40f74816c11c2d46eb0595795ef3611c18920482 (diff) | |
| download | python-openstackclient-cc93be81c91f8ef1732286e9c4a8485444f3e1db.tar.gz | |
Merge "Remove redundant OpenStackShell.prepare_to_run_command"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/shell.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index 7fbda1ae..755af24d 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -139,32 +139,6 @@ class OpenStackShell(shell.OpenStackShell): pw_func=shell.prompt_for_password, ) - def prepare_to_run_command(self, cmd): - """Set up auth and API versions""" - - # TODO(dtroyer): Move this to osc-lib, remove entire method when 1.4.0 - # release is minimum version is in global-requirements - # NOTE(dtroyer): If auth is not required for a command, skip - # get_one_Cloud()'s validation to avoid loading plugins - validate = cmd.auth_required - - # Force skipping auth for commands that do not need it - # NOTE(dtroyer): This is here because ClientManager does not have - # visibility into the Command object to get - # auth_required. It needs to move into osc-lib - self.client_manager._auth_required = cmd.auth_required - - # Validate auth options - self.cloud = self.cloud_config.get_one_cloud( - cloud=self.options.cloud, - argparse=self.options, - validate=validate, - ) - # Push the updated args into ClientManager - self.client_manager._cli_options = self.cloud - - return super(OpenStackShell, self).prepare_to_run_command(cmd) - def main(argv=None): if argv is None: |
