From a05e4510bfedae82d7f791a23acf217ef506443e Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Mon, 19 Jun 2017 15:15:23 +0200 Subject: [PATCH] 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 --- tripleo_common/actions/plan.py | 2 +- tripleo_common/actions/swifthelper.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tripleo_common/actions/plan.py b/tripleo_common/actions/plan.py index 510fb0b6f..5fd242a94 100644 --- a/tripleo_common/actions/plan.py +++ b/tripleo_common/actions/plan.py @@ -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: diff --git a/tripleo_common/actions/swifthelper.py b/tripleo_common/actions/swifthelper.py index f3876f4e9..c1b1c88c3 100644 --- a/tripleo_common/actions/swifthelper.py +++ b/tripleo_common/actions/swifthelper.py @@ -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