Skip to content

Commit 784a6e1

Browse files
committed
fix guest_info target running on simulator
1 parent 96c888f commit 784a6e1

File tree

1 file changed

+12
-1
lines changed
  • tests/integration/targets/vmware_guest_info/tasks

1 file changed

+12
-1
lines changed

tests/integration/targets/vmware_guest_info/tasks/main.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@
66
username: "{{ vcenter_username }}"
77
password: "{{ vcenter_password }}"
88
port: "{{ vcenter_port }}"
9-
guest_name: "{{ vm_name | d(omit) }}"
109
register: __res
10+
when: run_on_simulator
11+
12+
- name: Gather guest info
13+
vmware.vmware.guest_info:
14+
validate_certs: false
15+
hostname: "{{ vcenter_hostname }}"
16+
username: "{{ vcenter_username }}"
17+
password: "{{ vcenter_password }}"
18+
port: "{{ vcenter_port }}"
19+
guest_name: "{{ vm_name }}"
20+
register: __res
21+
when: not run_on_simulator
1122

1223
- name: Assert values
1324
ansible.builtin.assert:

0 commit comments

Comments
 (0)