Skip to content

Commit

Permalink
Update task file path and assertion for vm_primary_nic_mac
Browse files Browse the repository at this point in the history
Signed-off-by: Qi Zhang <qi-keira.zhang@broadcom.com>
  • Loading branch information
keirazhang committed Jan 9, 2024
1 parent 7d2ef02 commit 1c3ec0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/vm_wait_primary_nic_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@
ansible.builtin.assert:
that:
- vm_primary_nic_mac
- vm_primary_nic_mac | ansible.utils.hwaddr
fail_msg: "VM primary network adapter has No MAC address"
success_msg: "VM primary network adapter MAC address is {{ vm_primary_nic_mac }}"
2 changes: 1 addition & 1 deletion env_setup/env_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
when: vm_power_state_get == "poweredOff"

- name: "Wait for VM primary network adapter has MAC address"
include_tasks: ../../common/vm_wait_primary_nic_mac.yml
include_tasks: ../common/vm_wait_primary_nic_mac.yml
when: vm_exists is defined and vm_exists

- name: Set fact of the VM datastore path
Expand Down

0 comments on commit 1c3ec0e

Please sign in to comment.