1469ec4487
* better handling of bad type in config
fixes #22468, fixes #22476
(cherry picked from commit 87e44a7ed1
)
10 lines
366 B
Bash
Executable file
10 lines
366 B
Bash
Executable file
#!/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'
|