1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

A little more cleanup regarding _compute_environment_string

This commit is contained in:
James Cammarata 2015-07-28 15:34:10 -04:00
parent 467432bef5
commit 5cf2781528

View file

@ -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)