diff --git a/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml b/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml index b621782796f..683a551e8df 100644 --- a/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml +++ b/test/integration/targets/nxos_file_copy/tests/cli/sanity.yaml @@ -23,7 +23,7 @@ provider: "{{ cli }}" username: "{{ nxos_cli_user | default('admin') }}" password: "{{ nxos_cli_pass | default('admin') }}" - host: "{{ inventory_hostname }}" + host: "{{ ansible_host }}" register: result - assert: &true @@ -50,7 +50,7 @@ provider: "{{ cli }}" username: "{{ nxos_cli_user | default('admin') }}" password: "{{ nxos_cli_pass | default('admin') }}" - host: "{{ inventory_hostname }}" + host: "{{ ansible_host }}" register: result - assert: *true diff --git a/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml b/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml index e9f2c8796e8..214b1fb3f55 100644 --- a/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml +++ b/test/integration/targets/nxos_file_copy/tests/nxapi/sanity.yaml @@ -25,7 +25,7 @@ provider: "{{ nxapi }}" username: "{{ nxos_nxapi_user | default('admin') }}" password: "{{ nxos_nxapi_pass | default('admin') }}" - host: "{{ inventory_hostname }}" + host: "{{ ansible_host }}" register: result - assert: &true @@ -53,7 +53,7 @@ provider: "{{ nxapi }}" username: "{{ nxos_nxapi_user | default('admin') }}" password: "{{ nxos_nxapi_pass | default('admin') }}" - host: "{{ inventory_hostname }}" + host: "{{ ansible_host }}" register: result - assert: *true