From 8b6e3272f25765d9450d4cfa5f92e082685fb6e1 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 8 Sep 2017 12:13:35 +0200 Subject: [PATCH] Set hostname to 'switch' on nxos_config toplevel setup/teardown tasks (#29127) Using inventory_hostname breaks in our CI, as the inventory_hostname translates to a long UUID, exceeding the maximum length for a NXOS hostname. --- .../targets/nxos_config/tests/common/toplevel.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/nxos_config/tests/common/toplevel.yaml b/test/integration/targets/nxos_config/tests/common/toplevel.yaml index 0ff6b0b3bd..ac5c1fbb23 100644 --- a/test/integration/targets/nxos_config/tests/common/toplevel.yaml +++ b/test/integration/targets/nxos_config/tests/common/toplevel.yaml @@ -3,7 +3,7 @@ - name: setup nxos_config: - lines: hostname {{ inventory_hostname_short }} + lines: hostname switch provider: "{{ connection }}" match: none @@ -30,7 +30,7 @@ - name: teardown nxos_config: - lines: hostname {{ inventory_hostname_short }} + lines: hostname switch provider: "{{ connection }}" match: none