From 2304706bd3b62f9060eb3c639d2e7c3ea1842519 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 8 Sep 2017 12:09:44 +0200 Subject: [PATCH] Set hostname to 'switch' on nxos_system teardown (#29126) On setup we set it to 'switch', so teardown should be 'switch'. Also, using inventory_hostname breaks the test, since in our CI it's a long UUID string, which exceeds the 32 chars maximum for setting a hostname on NXOS. --- .../targets/nxos_system/tests/common/set_hostname.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 6c252dba18..902452c169 100644 --- a/test/integration/targets/nxos_system/tests/common/set_hostname.yaml +++ b/test/integration/targets/nxos_system/tests/common/set_hostname.yaml @@ -29,7 +29,7 @@ - name: teardown nxos_config: - lines: "hostname {{ inventory_hostname }}" + lines: hostname switch match: none provider: "{{ connection }}"