From 25082b9ff04ad0a325544addd25c81b312270b4f Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Tue, 19 Nov 2019 23:36:37 +0100 Subject: [PATCH] openstack: use isinstance for type check Signed-off-by: Kyr Shatskyy --- teuthology/openstack/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teuthology/openstack/__init__.py b/teuthology/openstack/__init__.py index 938febad0..43f568737 100644 --- a/teuthology/openstack/__init__.py +++ b/teuthology/openstack/__init__.py @@ -64,7 +64,7 @@ class NoFlavorException(Exception): pass def enforce_json_dictionary(something): - if type(something) is not types.DictType: + if not isinstance(something, dict): raise Exception( 'Please pip uninstall --yes cliff-tablib and try again.' ' Details about this error can be found at' -- 2.47.3