VMware: Gather facts when powerstate is specified (#37908)

This fix adds additional facts after VM powerstate management.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-03-28 00:19:33 +05:30 committed by GitHub
commit 4edcbeb62d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -103,6 +103,12 @@
that:
- "clone_d1_c1_f0_recreate.results|map(attribute='changed')|unique|list == [false]"
- name: assert that no changes were made after re-creating VM and task returns facts
assert:
that:
- "'newvm_' + item | basename in clone_d1_c1_f0.results|map(attribute='instance.hw_name')|list"
with_items: "{{ vmlist['json'] }}"
- name: modify the new VMs
vmware_guest:
validate_certs: False