Up timeout when setting VM state
Ensures the API won't time out immediately especially during a wait-flagged or disable action.
This commit is contained in:
@@ -382,7 +382,9 @@ def vm_state(config, vm, target_state, force=False, wait=False):
|
||||
"force": str(force).lower(),
|
||||
"wait": str(wait).lower(),
|
||||
}
|
||||
response = call_api(config, "post", "/vm/{vm}/state".format(vm=vm), params=params)
|
||||
response = call_api(
|
||||
config, "post", "/vm/{vm}/state".format(vm=vm), params=params, timeout=120
|
||||
)
|
||||
|
||||
if response.status_code == 200:
|
||||
retstatus = True
|
||||
|
||||
Reference in New Issue
Block a user