diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2014-08-08 17:38:44 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2014-08-25 13:38:03 -0500 |
| commit | 4bbd03210f82d8f9a89627e08a546ba9841ff7fb (patch) | |
| tree | a10df1f472a8b8925c778b5660115ac31c0bbc20 /openstackclient/object/v1/container.py | |
| parent | 19b8605224156c48107541580a264860131b57ab (diff) | |
| download | python-openstackclient-4bbd03210f82d8f9a89627e08a546ba9841ff7fb.tar.gz | |
Change app.restapi to app.client_manager.session
This is step 1 toward using Keystone client's session.Session as the
primary session/requests interface in OSC.
* Move the session create into ClientManager and rename 'restapi' attribute to 'session'
* Set up ClientManager and session loggers
* Fix container and object command references to restapi/api
Change-Id: I013d81520b336c7a6422cd22c05d1d65655e64f8
Diffstat (limited to 'openstackclient/object/v1/container.py')
| -rw-r--r-- | openstackclient/object/v1/container.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openstackclient/object/v1/container.py b/openstackclient/object/v1/container.py index ae4013fc..1ca07f3a 100644 --- a/openstackclient/object/v1/container.py +++ b/openstackclient/object/v1/container.py @@ -45,7 +45,7 @@ class CreateContainer(show.ShowOne): self.log.debug('take_action(%s)', parsed_args) data = lib_container.create_container( - self.app.restapi, + self.app.client_manager.session, self.app.client_manager.object_store.endpoint, parsed_args.container, ) @@ -71,7 +71,7 @@ class DeleteContainer(command.Command): self.log.debug('take_action(%s)', parsed_args) lib_container.delete_container( - self.app.restapi, + self.app.client_manager.session, self.app.client_manager.object_store.endpoint, parsed_args.container, ) @@ -140,7 +140,7 @@ class ListContainer(lister.Lister): kwargs['full_listing'] = True data = lib_container.list_containers( - self.app.restapi, + self.app.client_manager.session, self.app.client_manager.object_store.endpoint, **kwargs ) @@ -170,7 +170,7 @@ class ShowContainer(show.ShowOne): self.log.debug('take_action(%s)', parsed_args) data = lib_container.show_container( - self.app.restapi, + self.app.client_manager.session, self.app.client_manager.object_store.endpoint, parsed_args.container, ) |
