From eb7f4460c82fc72fe0545e8155e16ec30c7cb93d Mon Sep 17 00:00:00 2001 From: Trishna Guha Date: Mon, 19 Feb 2018 10:57:16 +0530 Subject: [PATCH] Set hostname to 'switch' on nxos_system (#36373) Signed-off-by: Trishna Guha --- test/integration/targets/nxos_system/tests/common/sanity.yaml | 2 +- .../targets/nxos_system/tests/common/set_hostname.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 }}"