mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Changed from using type() to isinstance() per pull request comment
This commit is contained in:
parent
e02bd8fa0d
commit
e852dec4f7
@ -2629,9 +2629,9 @@ def run_func_until_ret_arg(fun, kwargs, fun_call=None, argument_being_watched=No
|
||||
f_result = fun(kwargs, call=fun_call)
|
||||
r_set = {}
|
||||
for d in f_result:
|
||||
if type(d) is list:
|
||||
if isinstance(d, list):
|
||||
d0 = d[0]
|
||||
if type(d0) is dict:
|
||||
if isinstance(d0, dict):
|
||||
for k, v in d0.items():
|
||||
r_set[k] = v
|
||||
status = _unwrap_dict(r_set, argument_being_watched)
|
||||
|
Loading…
Reference in New Issue
Block a user