diff options
| author | Jenkins <jenkins@review.openstack.org> | 2014-09-06 21:46:40 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2014-09-06 21:46:40 +0000 |
| commit | dc9ce6d6081867137c91cee235bceaf35906bc87 (patch) | |
| tree | 60140a4ef90823f538e9c338dc467580db4d61ce /openstackclient/shell.py | |
| parent | b7816f399766a6aa29e9f147a9546c26c132751f (diff) | |
| parent | 4bbd03210f82d8f9a89627e08a546ba9841ff7fb (diff) | |
| download | python-openstackclient-dc9ce6d6081867137c91cee235bceaf35906bc87.tar.gz | |
Merge "Change app.restapi to app.client_manager.session"
Diffstat (limited to 'openstackclient/shell.py')
| -rw-r--r-- | openstackclient/shell.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/openstackclient/shell.py b/openstackclient/shell.py index 6fe5ba7d..24804343 100644 --- a/openstackclient/shell.py +++ b/openstackclient/shell.py @@ -31,7 +31,6 @@ import openstackclient from openstackclient.common import clientmanager from openstackclient.common import commandmanager from openstackclient.common import exceptions as exc -from openstackclient.common import restapi from openstackclient.common import timing from openstackclient.common import utils @@ -467,10 +466,6 @@ class OpenStackShell(app.App): self.verify = self.options.os_cacert else: self.verify = not self.options.insecure - self.restapi = restapi.RESTApi( - verify=self.verify, - debug=self.options.debug, - ) def prepare_to_run_command(self, cmd): """Set up auth and API versions""" @@ -481,12 +476,10 @@ class OpenStackShell(app.App): if cmd.best_effort: try: self.authenticate_user() - self.restapi.set_auth(self.client_manager.identity.auth_token) except Exception: pass else: self.authenticate_user() - self.restapi.set_auth(self.client_manager.identity.auth_token) return def clean_up(self, cmd, result, err): @@ -522,7 +515,6 @@ class OpenStackShell(app.App): # NOTE(dtroyer): Maintain the old behaviour for interactive use as # this path does not call prepare_to_run_command() self.authenticate_user() - self.restapi.set_auth(self.client_manager.identity.auth_token) super(OpenStackShell, self).interact() |
