mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fixed tests to reflect desired configuration behaviour
Test for when environment variable and configuration file variable both set now tests that the environment variable takes precedence Removed logic that would never be triggered from lib/ansible/constants.py
This commit is contained in:
@@ -29,8 +29,6 @@ def get_config(p, section, key, env_var, default):
|
||||
try:
|
||||
return p.get(section, key)
|
||||
except:
|
||||
if env_var is not None:
|
||||
return os.environ.get(env_var, default)
|
||||
return default
|
||||
else:
|
||||
return default
|
||||
|
||||
Reference in New Issue
Block a user