From 497e6cf405d921f8b18dc01796d48a5fc77261e1 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. --- .../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 e950a97430..3bd8a4172b 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