Merge "Fix logging error in GET systems"

This commit is contained in:
Jenkins 2016-11-13 04:48:25 +00:00 committed by Gerrit Code Review
commit 11528d3175

View File

@ -154,9 +154,9 @@ def node_nw_details(nodeurl):
# this extracts the total nw interfaces and returns as a string
resp = send_request(nodeurl + "/EthernetInterfaces")
respbody = resp.json()
nwi = extract_val(respbody, "Members@odata.count")
LOG.debug(" Total NW for node %s : %d " % (nodeurl, nwi))
return str(nwi) if nwi else "0"
nwi = str(extract_val(respbody, "Members@odata.count", "0"))
LOG.debug(" Total NW for node %s : %s " % (nodeurl, nwi))
return nwi
def node_storage_details(nodeurl):