summaryrefslogtreecommitdiff
path: root/openstackclient/api/utils.py
diff options
context:
space:
mode:
authorBrandon Palm <bapalm@us.ibm.com>2016-02-22 16:20:30 -0600
committerBrandon Palm <bapalm@us.ibm.com>2016-02-22 16:23:23 -0600
commit11a8f911affe10bacce41ad3474a28aff3417ec3 (patch)
tree4db4dc8767633b6064a5e43ba2622513a1d164d1 /openstackclient/api/utils.py
parentc57fc41c33df58237f6b3ec8a5b2a0ff9573da2e (diff)
downloadpython-openstackclient-11a8f911affe10bacce41ad3474a28aff3417ec3.tar.gz
Use instanceof instead of type
Adjusted conditional statements to use instanceof when comparing variables. Instanceof supports inheritance type checking better than type. Change-Id: I4ee0004934dc2322d43ef07e797a6811e39a812c Closes-Bug: 1548530
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.