Manage situations where ODU workflows fail before it is launched (empty workflow_name)
Change-Id: I63a2113eee3626b6bc018519ca324b95ada1dc73
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/osm_lcm/odu_libs/profiles.py b/osm_lcm/odu_libs/profiles.py
index 323250e..782d056 100644
--- a/osm_lcm/odu_libs/profiles.py
+++ b/osm_lcm/odu_libs/profiles.py
@@ -54,7 +54,7 @@
api_plural="workflows",
api_version="v1alpha1",
)
- return workflow_name
+ return True, workflow_name
async def delete_profile(self, op_id, op_params, content):
@@ -92,7 +92,7 @@
api_plural="workflows",
api_version="v1alpha1",
)
- return workflow_name
+ return True, workflow_name
async def attach_profile_to_cluster(self, op_id, op_params, content):
@@ -136,7 +136,7 @@
api_plural="workflows",
api_version="v1alpha1",
)
- return workflow_name
+ return True, workflow_name
async def detach_profile_from_cluster(self, op_id, op_params, content):
@@ -181,4 +181,4 @@
api_plural="workflows",
api_version="v1alpha1",
)
- return workflow_name
+ return True, workflow_name