Defer calls to tripleoclient.object_store
With a recent osc-lib[1] change it is no longer possible to make auth-requiring calls in the command __init__. This change defers calls to tripleoclient.object_store so that it is made when auth is properly setup. [1] I72ae6154268bdf26be6054c0fef6a4c67c71119c Closes-Bug: #1687032 Change-Id: If640da00d9b8d49ff935209e3b31dcf0f327ad63
This commit is contained in:
parent
846f087ea4
commit
2cdbee82e9
|
@ -54,7 +54,6 @@ class DeployOvercloud(command.Command):
|
|||
self._password_cache = None
|
||||
super(DeployOvercloud, self).__init__(*args, **kwargs)
|
||||
self.clients = self.app.client_manager
|
||||
self.object_client = self.clients.tripleoclient.object_store
|
||||
self.workflow_client = self.clients.workflow_engine
|
||||
self.network_client = self.clients.network
|
||||
self.orchestration_client = self.clients.orchestration
|
||||
|
@ -62,6 +61,10 @@ class DeployOvercloud(command.Command):
|
|||
self.baremetal_client = self.clients.baremetal
|
||||
self.image_client = self.clients.image
|
||||
|
||||
@property
|
||||
def object_client(self):
|
||||
return self.clients.tripleoclient.object_store
|
||||
|
||||
def _update_parameters(self, args, stack):
|
||||
parameters = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue