Providing output info when exec_primitive fails 32/9732/2 v8.0.3 v8.0.4
authortierno <alfonso.tiernosepulveda@telefonica.com>
Tue, 22 Sep 2020 10:38:22 +0000 (10:38 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 9 Oct 2020 14:35:48 +0000 (14:35 +0000)
Change-Id: I5d35e524acf89eaa4a15e468a00c0d3e818f9a93
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
n2vc/k8s_juju_conn.py
n2vc/n2vc_juju_conn.py

index e3f3267..c8be80c 100644 (file)
@@ -604,7 +604,7 @@ class K8sJujuConnector(K8sConnector):
 
             if status != "completed":
                 raise K8sException(
-                    "status is not completed: {} output: {}".format(status, output)
+                    "status: {}, output: {}".format(status, output)
                 )
 
             return output
index 690d3be..951ac6c 100644 (file)
@@ -922,7 +922,7 @@ class N2VCJujuConnector(N2VCConnector):
                 if status == "completed":
                     return output
                 else:
-                    raise Exception("status is not completed: {}".format(status))
+                    raise Exception("status: {}, output: {}".format(status, output))
             except Exception as e:
                 self.log.error(
                     "Error executing primitive {}: {}".format(primitive_name, e)