Fix swift endpoint
The swift actions are not working. Need to pass the preauthurl to the client with the actual swift endpoint. Change-Id: I991f91c4dace8d82a7b3204b039c080b8399f63b
This commit is contained in:
parent
f1e2385f80
commit
43e453d8b6
|
@ -418,9 +418,19 @@ class SwiftAction(base.OpenStackAction):
|
|||
|
||||
LOG.debug("Swift action security context: %s", context)
|
||||
|
||||
swift_endpoint = self.get_service_endpoint()
|
||||
|
||||
swift_url = keystone_utils.format_url(
|
||||
swift_endpoint.url,
|
||||
{'tenant_id': context.project_id}
|
||||
)
|
||||
|
||||
session_and_auth = self.get_session_and_auth(context)
|
||||
|
||||
return self._get_client_class()(session=session_and_auth['session'])
|
||||
return self._get_client_class()(
|
||||
session=session_and_auth['session'],
|
||||
preauthurl=swift_url
|
||||
)
|
||||
|
||||
|
||||
class ZaqarAction(base.OpenStackAction):
|
||||
|
|
Loading…
Reference in New Issue