change inventory_hostname to ansible_host to fix test (#32890)

Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
This commit is contained in:
Trishna Guha 2017-11-14 10:44:47 +00:00 committed by GitHub
parent c40de24e9c
commit 11de330372
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

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

View file

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