From 2f3c1867f7da5002a2be85c3a7b8a647bc8b17d3 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 8 Sep 2017 13:56:09 +0200 Subject: [PATCH] Use 'hostname switch' on setup/teardown tasks for nxos_config non_idempotent (#29132) inventory_hostname breaks CI due to too long string. (cherry picked from commit 497e6cf405d921f8b18dc01796d48a5fc77261e1) --- .../nxos_config/tests/common/toplevel_nonidempotent.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml b/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml index e950a97430c..3bd8a4172b0 100644 --- a/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml +++ b/test/integration/targets/nxos_config/tests/common/toplevel_nonidempotent.yaml @@ -3,7 +3,7 @@ - name: setup nxos_config: - lines: hostname {{ inventory_hostname_short }} + lines: hostname switch provider: "{{ connection }}" match: none @@ -32,7 +32,7 @@ - name: teardown nxos_config: - lines: hostname {{ inventory_hostname_short }} + lines: hostname switch provider: "{{ connection }}" match: none