fixing vim_actions backward compatibility 25/7025/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 3 Dec 2018 12:04:48 +0000 (12:04 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 3 Dec 2018 12:04:48 +0000 (12:04 +0000)
Change-Id: I7553920aa47baad8773cab27c84df8e60fff0e78
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
osm_ro/nfvo.py

index f625b4f..7b8a820 100644 (file)
@@ -4711,6 +4711,8 @@ def instance_action_get(mydb, nfvo_tenant, instance_id, action_id):
             raise NfvoException("Not found any action with this criteria", httperrors.Not_Found)
         vim_wim_actions = mydb.get_rows(FROM="vim_wim_actions", WHERE={"instance_action_id": action_id})
         rows[0]["vim_wim_actions"] = vim_wim_actions
+        # for backward compatibility set vim_actions = vim_wim_actions
+        rows[0]["vim_actions"] = vim_wim_actions
     return {"actions": rows}