summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2021-03-03 20:24:50 +0100
committerGitHub <noreply@github.com>2021-03-03 20:24:50 +0100
commit527bff6b79081b942c0ac9d0b1e306b99ffa81a6 (patch)
tree700249036b72d6fe4f4c65ad38ebff46ed62f589 /test
parentadd base 2.10 to docs version switcher (#73770) (diff)
downloadansible-527bff6b79081b942c0ac9d0b1e306b99ffa81a6.tar.xz
ansible-527bff6b79081b942c0ac9d0b1e306b99ffa81a6.zip
Don't fail for mixed typed keys (#73726)
* Don't fail for mixed typed keys but warn that content cound not be sorted because of this * added tests
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/inventory/inv_with_int.yml6
-rwxr-xr-xtest/integration/targets/inventory/runme.sh3
2 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/targets/inventory/inv_with_int.yml b/test/integration/targets/inventory/inv_with_int.yml
new file mode 100644
index 0000000000..5b2f21da71
--- /dev/null
+++ b/test/integration/targets/inventory/inv_with_int.yml
@@ -0,0 +1,6 @@
+all:
+ hosts:
+ testing123:
+ x:
+ a: 1
+ 0: 2
diff --git a/test/integration/targets/inventory/runme.sh b/test/integration/targets/inventory/runme.sh
index dba8a51947..7ce16cf54e 100755
--- a/test/integration/targets/inventory/runme.sh
+++ b/test/integration/targets/inventory/runme.sh
@@ -85,3 +85,6 @@ if ANSIBLE_INVENTORY_ANY_UNPARSED_IS_FAILED=True ansible -m ping localhost -i "$
echo "Empty directory should cause failure when ANSIBLE_INVENTORY_ANY_UNPARSED_IS_FAILED=True"
exit 1
fi
+
+# ensure we don't traceback on inventory due to variables with int as key
+ansible-inventory -i inv_with_int.yml --list "$@"