Fixing KVM VM mgmt scenarios (contd.)

This commit is contained in:
Sergey Shubin svs1370
2020-06-27 16:56:42 +03:00
parent 9a2c909961
commit f0c6c432d5
2 changed files with 7 additions and 5 deletions

View File

@@ -685,7 +685,7 @@ class DecortController(object):
return
powerstate_api = "" # this string will also be used as a flag to indicate that API call is necessary
api_params = dict(compId=comp_facts['id'])
api_params = dict(computeId=comp_facts['id'])
expected_state = ""
if comp_facts['techStatus'] == "STARTED":
@@ -694,7 +694,7 @@ class DecortController(object):
expected_techState = "PAUSED"
elif target_state in ('poweredoff', 'halted', 'stopped'):
powerstate_api = "/restmachine/cloudapi/compute/stop"
params['force'] = force_change
api_params['force'] = force_change
expected_techState = "STOPPED"
elif target_state == 'restarted':
powerstate_api = "/restmachine/cloudapi/compute/reboot"