From e852dec4f77bdc0e81a92c6045f19da8b09e8973 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 6 Jan 2015 00:11:26 +0000 Subject: [PATCH] Changed from using type() to isinstance() per pull request comment --- salt/utils/cloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index a06813bc80..aacec63e19 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -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)