From 430fc58417f19657c6faf14712e4efa7ffd9a987 Mon Sep 17 00:00:00 2001 From: "Vanathi.Selvaraju" Date: Sat, 7 Dec 2024 19:12:30 -0500 Subject: [PATCH] Adaptation of phase response for backward comptability This change is to avoid error scenario in case where response message is not part of the patch strategy created and vim client looks for the 'response' message to be avaialble. Test Plan: PASSED: Verified dcorechestration where systemcontroller with 22.12P6 and subcloud is runnign with 22.12P5. Closes-Bug: 2091223 Change-Id: I30535a8cbc2e964fdcf834f75bc333f820d01c4d Signed-off-by: Vanathi.Selvaraju --- nfv/nfv-client/nfv_client/openstack/sw_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfv/nfv-client/nfv_client/openstack/sw_update.py b/nfv/nfv-client/nfv_client/openstack/sw_update.py index ed7abbc2..3a230056 100755 --- a/nfv/nfv-client/nfv_client/openstack/sw_update.py +++ b/nfv/nfv-client/nfv_client/openstack/sw_update.py @@ -141,7 +141,7 @@ def _get_strategy_phase_object_from_response(response): phase.completion_percentage = response['completion-percentage'] phase.result = response['result'] phase.reason = response['reason'] - phase.response = response['response'] + phase.response = response.get('response') phase.stages = [] for stage in response['stages']: