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/workflows.py b/osm_lcm/odu_libs/workflows.py
index f3b9295..094aa9e 100644
--- a/osm_lcm/odu_libs/workflows.py
+++ b/osm_lcm/odu_libs/workflows.py
@@ -23,6 +23,8 @@
async def check_workflow_status(self, workflow_name):
self.logger.info(f"check_workflow_status Enter: {workflow_name}")
+ if not workflow_name:
+ return False, "Workflow was not launched"
try:
return await self.readiness_loop(
item="workflow",