summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Carrillo Cruz <ricardo.carrillo.cruz@gmail.com>2017-09-08 12:13:35 +0200
committerToshio Kuratomi <a.badger@gmail.com>2017-09-14 22:21:06 -0700
commit3f6ba180fc8b3fc6e5e156b6928c4664f27f14c2 (patch)
treed955bcc9b0cf8e3de25a2ae552cf1105ab1a7bc4
parentcde49268e29fdd9074c6e35b9edd6d08197f4000 (diff)
downloadansible-3f6ba180fc8b3fc6e5e156b6928c4664f27f14c2.tar.gz
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. (cherry picked from commit 8b6e3272f25765d9450d4cfa5f92e082685fb6e1)
-rw-r--r--test/integration/targets/nxos_config/tests/common/toplevel.yaml4
1 files 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