projects
/
osm
/
RO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 2316: Fix for Unable to do vertical scaling when VM is in Shutdown state
[osm/RO.git]
/
RO-SDN-onos_openflow
/
osm_rosdn_onosof
/
onos_of.py
diff --git
a/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py
b/RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py
index
34359ae
..
be8fa7d
100644
(file)
--- a/
RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py
+++ b/
RO-SDN-onos_openflow/osm_rosdn_onosof/onos_of.py
@@
-128,7
+128,7
@@
class OfConnOnos(OpenflowConn):
self.logger.debug("get_of_switches " + error_text)
info = of_response.json()
self.logger.debug("get_of_switches " + error_text)
info = of_response.json()
- if
type(info) != dict
:
+ if
not info.isinstance(dict)
:
self.logger.error(
"get_of_switches. Unexpected response, not a dict: %s", str(info)
)
self.logger.error(
"get_of_switches. Unexpected response, not a dict: %s", str(info)
)
@@
-312,7
+312,7
@@
class OfConnOnos(OpenflowConn):
info = of_response.json()
info = of_response.json()
- if
type(info) != dict
:
+ if
not info.isinstance(dict)
:
self.logger.error(
"get_of_rules. Unexpected response, not a dict: %s",
str(info),
self.logger.error(
"get_of_rules. Unexpected response, not a dict: %s",
str(info),