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 <vanathi.selvaraju@windriver.com>
This commit is contained in:
Vanathi.Selvaraju 2024-12-07 19:12:30 -05:00 committed by Vanathi Selvaraju
parent 74f2707fc7
commit 430fc58417

View File

@ -141,7 +141,7 @@ def _get_strategy_phase_object_from_response(response):
phase.completion_percentage = response['completion-percentage'] phase.completion_percentage = response['completion-percentage']
phase.result = response['result'] phase.result = response['result']
phase.reason = response['reason'] phase.reason = response['reason']
phase.response = response['response'] phase.response = response.get('response')
phase.stages = [] phase.stages = []
for stage in response['stages']: for stage in response['stages']: