A little more cleanup regarding _compute_environment_string

pull/4420/head
James Cammarata 2015-07-28 15:34:10 -04:00
parent 467432bef5
commit 5cf2781528
1 changed files with 2 additions and 2 deletions

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)