Backport: ovirt_disk fix activate (#70114)

* Backport: ovirt_disk fix activate

* add changelog
pull/69860/head
Martin Nečas 5 years ago committed by GitHub
parent 6967811560
commit b0c7cdc60d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
bugfixes:
- "ovirt_disk fix activate (https://github.com/oVirt/ovirt-ansible-collection/pull/61)"

@ -733,7 +733,7 @@ def main():
if state in ('present', 'detached', 'attached'):
# Always activate disk when its being created
if vm_service is not None and disk is None:
module.params['activate'] = True
module.params['activate'] = module.params['activate'] is None or module.params['activate']
ret = disks_module.create(
entity=disk if not force_create else None,
result_state=otypes.DiskStatus.OK if lun is None else None,

Loading…
Cancel
Save