summaryrefslogtreecommitdiff
path: root/test/integration/targets/eos_template
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-01-09 17:21:04 +0000
committerGitHub <noreply@github.com>2017-01-09 17:21:04 +0000
commitfb3bef7f46be78d4ff99466085ebcaac9120df48 (patch)
treeda4740fd4c20f1a1a641f6634f4c5f2b120b5ca5 /test/integration/targets/eos_template
parenta2b4ad9da0b64d61cb21b3b33a3b37ee1e87ef83 (diff)
downloadansible-fb3bef7f46be78d4ff99466085ebcaac9120df48.tar.gz
Use inventory_hostname_short (#20054)
When using AWS we have to use the full domain name in the inventory file, which we rather than the short name. This change avoids that ending up being set in the tests.
Diffstat (limited to 'test/integration/targets/eos_template')
-rw-r--r--test/integration/targets/eos_template/tests/cli/backup.yaml4
-rw-r--r--test/integration/targets/eos_template/tests/eapi/backup.yaml4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/targets/eos_template/tests/cli/backup.yaml b/test/integration/targets/eos_template/tests/cli/backup.yaml
index c3d9491888..5088f9ede2 100644
--- a/test/integration/targets/eos_template/tests/cli/backup.yaml
+++ b/test/integration/targets/eos_template/tests/cli/backup.yaml
@@ -14,7 +14,7 @@
- name: collect any backup files
find:
paths: "{{ role_path }}/backup"
- pattern: "{{ inventory_hostname }}_config*"
+ pattern: "{{ inventory_hostname_short }}_config*"
register: backup_files
delegate_to: localhost
@@ -39,7 +39,7 @@
- name: collect any backup files
find:
paths: "{{ role_path }}/backup"
- pattern: "{{ inventory_hostname }}_config*"
+ pattern: "{{ inventory_hostname_short }}_config*"
register: backup_files
delegate_to: localhost
diff --git a/test/integration/targets/eos_template/tests/eapi/backup.yaml b/test/integration/targets/eos_template/tests/eapi/backup.yaml
index e39efb476e..4b510801d4 100644
--- a/test/integration/targets/eos_template/tests/eapi/backup.yaml
+++ b/test/integration/targets/eos_template/tests/eapi/backup.yaml
@@ -14,7 +14,7 @@
- name: collect any backup files
find:
paths: "{{ role_path }}/backup"
- pattern: "{{ inventory_hostname }}_config*"
+ pattern: "{{ inventory_hostname_short }}_config*"
register: backup_files
delegate_to: localhost
@@ -39,7 +39,7 @@
- name: collect any backup files
find:
paths: "{{ role_path }}/backup"
- pattern: "{{ inventory_hostname }}_config*"
+ pattern: "{{ inventory_hostname_short }}_config*"
register: backup_files
delegate_to: localhost