Fix plan export
Plan export is currently failing due to the `get_object_client()` method being called without the mandatory `context` argument. This change also fixes another instance of the missing `context` argument to the `get_object_client()` method in the SwiftInformationAction action. Change-Id: I70f522f85dbbbabb5d50d202001017ab0473385a Closes-bug: #1698811
This commit is contained in:
parent
c1b0c1c6ef
commit
a05e4510bf
|
@ -255,7 +255,7 @@ class ExportPlanAction(base.TripleOAction):
|
|||
headers=headers)
|
||||
|
||||
def run(self, context):
|
||||
swift = self.get_object_client()
|
||||
swift = self.get_object_client(context)
|
||||
tmp_dir = tempfile.mkdtemp()
|
||||
|
||||
try:
|
||||
|
|
|
@ -36,7 +36,7 @@ class SwiftInformationAction(base.TripleOAction):
|
|||
data = None
|
||||
error = None
|
||||
try:
|
||||
oc = self.get_object_client()
|
||||
oc = self.get_object_client(context)
|
||||
oc.head_container(self.container)
|
||||
container_url = "{}/{}".format(oc.url, self.container)
|
||||
auth_key = context.auth_token
|
||||
|
|
Loading…
Reference in New Issue