diff --git a/test/integration/targets/nxos_system/tests/common/set_hostname.yaml b/test/integration/targets/nxos_system/tests/common/set_hostname.yaml index 6d491b1ff2..9ff1840da4 100644 --- a/test/integration/targets/nxos_system/tests/common/set_hostname.yaml +++ b/test/integration/targets/nxos_system/tests/common/set_hostname.yaml @@ -6,7 +6,7 @@ - block: - name: setup nxos_config: - lines: "hostname {{ inventory_hostname }}" + lines: "hostname {{ inventory_hostname_short }}" match: none - name: configure hostname @@ -30,7 +30,7 @@ always: - name: teardown nxos_config: - lines: "hostname {{ inventory_hostname }}" + lines: "hostname {{ inventory_hostname_short }}" match: none