summaryrefslogtreecommitdiff
path: root/openstackclient/api/utils.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-02-23 08:50:24 +0000
committerGerrit Code Review <review@openstack.org>2016-02-23 08:50:24 +0000
commit02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f (patch)
tree4e65880d9cbe6de2112b6d83fbf755a270f59c9f /openstackclient/api/utils.py
parentdb4d73d8c8c3471df2f515d2881e121f456678d9 (diff)
parent11a8f911affe10bacce41ad3474a28aff3417ec3 (diff)
downloadpython-openstackclient-02e5b6f41d2b5f026ce1f1f5b7026d5968a7c20f.tar.gz
Merge "Use instanceof instead of type"
Diffstat (limited to 'openstackclient/api/utils.py')
-rw-r--r--openstackclient/api/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/api/utils.py b/openstackclient/api/utils.py
index fa759cd3..ab0e23c2 100644
--- a/openstackclient/api/utils.py
+++ b/openstackclient/api/utils.py
@@ -61,7 +61,7 @@ def simple_filter(
# Searching data fields
search_value = d[attr]
elif (property_field and property_field in d and
- type(d[property_field]) is dict):
+ isinstance(d[property_field], dict)):
# Searching a properties field - do this separately because
# we don't want to fail over to checking the fields if a
# property name is given.