mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
better handling of bad type in config (#48821)
* better handling of bad type in config fixes #22468, fixes #22476
This commit is contained in:
1
test/integration/targets/config/aliases
Normal file
1
test/integration/targets/config/aliases
Normal file
@@ -0,0 +1 @@
|
||||
shippable/posix/group1
|
||||
10
test/integration/targets/config/runme.sh
Executable file
10
test/integration/targets/config/runme.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
# ignore empty env var and use default
|
||||
# shellcheck disable=SC1007
|
||||
ANSIBLE_TIMEOUT= ansible -m ping localhost "$@"
|
||||
|
||||
# env var is wrong type, this should be a fatal error pointing at the setting
|
||||
ANSIBLE_TIMEOUT='lola' ansible -m ping localhost "$@" 2>&1|grep 'AnsibleOptionsError: Invalid type for configuration option DEFAULT_TIMEOUT'
|
||||
Reference in New Issue
Block a user