diff --git a/test/integration/targets/nxos_system/tests/common/sanity.yaml b/test/integration/targets/nxos_system/tests/common/sanity.yaml index af6da7585e..0b513699e0 100644 --- a/test/integration/targets/nxos_system/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_system/tests/common/sanity.yaml @@ -6,7 +6,7 @@ - block: - name: configure hostname and domain-name nxos_system: &hostname - hostname: "{{ inventory_hostname_short }}" + hostname: switch domain_name: test.example.com provider: "{{ connection }}" 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 12f0e05c63..1521d46bc8 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_short }}" + lines: hostname switch match: none provider: "{{ connection }}" @@ -33,7 +33,7 @@ always: - name: teardown nxos_config: - lines: "hostname {{ inventory_hostname_short }}" + lines: hostname switch match: none provider: "{{ connection }}"