ovirt: Add support to diff (#20698)

* cloud: ovirt: Add diff support to

* cloud: ovirt: Add ability to print nested list of objects

* cloud: ovirt: Fix waiting while reinstalling host

* cloud: ovirt: fix ovirt_vms 404 error

* cloud: ovirt: add check_mode support to ovirt_auth module
This commit is contained in:
Ondra Machacek 2017-02-02 19:50:52 +01:00 committed by Ryan Brown
parent 6ca5fb49c3
commit ee7f1cde0e
5 changed files with 118 additions and 56 deletions

View file

@ -34,6 +34,7 @@ from ansible.module_utils.ovirt import (
convert_to_bytes,
create_connection,
equal,
get_entity,
get_link_name,
ovirt_full_argument_spec,
search_by_name,
@ -627,7 +628,7 @@ class VmsModule(BaseModule):
# Attach disk to VM:
disk_attachments_service = self._service.service(entity.id).disk_attachments_service()
if disk_attachments_service.attachment_service(disk_id).get() is None:
if get_entity(disk_attachments_service.attachment_service(disk_id)) is None:
if not self._module.check_mode:
disk_attachments_service.add(
otypes.DiskAttachment(