Commit 5cf27815 by James Cammarata

A little more cleanup regarding _compute_environment_string

parent 467432be
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment