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:
parent
467432bef5
commit
5cf2781528
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue