mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-26 00:16:49 +00:00
A little more cleanup regarding _compute_environment_string
This commit is contained in:
@@ -96,8 +96,8 @@ class ActionBase:
|
||||
environments = [ environments ]
|
||||
|
||||
for environment in environments:
|
||||
if type(environment) != dict:
|
||||
raise AnsibleError("environment must be a dictionary, received %s" % environment)
|
||||
if not isinstance(environment, dict):
|
||||
raise AnsibleError("environment must be a dictionary, received %s (%s)" % (environment, type(environment)))
|
||||
# very deliberatly using update here instead of combine_vars, as
|
||||
# these environment settings should not need to merge sub-dicts
|
||||
final_environment.update(environment)
|
||||
|
||||
Reference in New Issue
Block a user