change inventory_hostname to ansible_host to fix test (#32890) (#32891)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
(cherry picked from commit 11de330372)
pull/32905/head
Trishna Guha 8 years ago committed by GitHub
parent 363e605ac4
commit 8b19c1c02d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

@ -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

Loading…
Cancel
Save