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 a5b8d021fc6..12f0e05c636 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 provider: "{{ connection }}" @@ -33,7 +33,7 @@ always: - name: teardown nxos_config: - lines: "hostname {{ inventory_hostname }}" + lines: "hostname {{ inventory_hostname_short }}" match: none provider: "{{ connection }}"