diff --git a/common/vm_wait_primary_nic_mac.yml b/common/vm_wait_primary_nic_mac.yml index 846a2c508..d7448b0bb 100644 --- a/common/vm_wait_primary_nic_mac.yml +++ b/common/vm_wait_primary_nic_mac.yml @@ -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 }}" diff --git a/env_setup/env_setup.yml b/env_setup/env_setup.yml index 3e07ba1ee..13c57113a 100644 --- a/env_setup/env_setup.yml +++ b/env_setup/env_setup.yml @@ -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