mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
ovirt: get default auth/connection params from environment vars (#19385)
* cloud: ovirt: add possibility specify auth params in env vars * module_utils: ovirt: fix pep8 issues
This commit is contained in:
committed by
Ryan Brown
parent
36213e8b21
commit
9a2b220005
@@ -719,7 +719,7 @@ def control_state(vm, vms_service, module):
|
||||
vm.status == otypes.VmStatus.UNKNOWN
|
||||
):
|
||||
# Invalid states:
|
||||
module.fail_json("Not possible to control VM, if it's in '{}' status".format(vm.status))
|
||||
module.fail_json(msg="Not possible to control VM, if it's in '{}' status".format(vm.status))
|
||||
elif vm.status == otypes.VmStatus.POWERING_DOWN:
|
||||
if (force and state == 'stopped') or state == 'absent':
|
||||
vm_service.stop()
|
||||
|
||||
Reference in New Issue
Block a user