mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07: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:
parent
36213e8b21
commit
9a2b220005
4 changed files with 42 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue