Commit 7cc41c0a authored by Sigmund Augdal's avatar Sigmund Augdal

Remove print statements

parent ebb8b02e
...@@ -137,9 +137,6 @@ class Client(object): ...@@ -137,9 +137,6 @@ class Client(object):
errmsg = ", ".join(error_doc.xpath('/m:error/m:innererror/m:message/text()', namespaces=namespaces)) errmsg = ", ".join(error_doc.xpath('/m:error/m:innererror/m:message/text()', namespaces=namespaces))
if not errmsg: if not errmsg:
errmsg = error_doc.xpath('/m:error/m:message/text()', namespaces=namespaces)[0] errmsg = error_doc.xpath('/m:error/m:message/text()', namespaces=namespaces)[0]
print("Request failed with error: " + errtype)
print(errmsg)
print(data)
raise ODataException(errtype, errmsg, error_doc) raise ODataException(errtype, errmsg, error_doc)
except etree.XMLSyntaxError as e2: except etree.XMLSyntaxError as e2:
print("Did not get xml error from SPF") print("Did not get xml error from SPF")
...@@ -337,7 +334,6 @@ class VMMClient(Client): ...@@ -337,7 +334,6 @@ class VMMClient(Client):
guest_infos = self.query_collection("GuestInfos", query={"StampId": stampid, "VMId": vmid}) guest_infos = self.query_collection("GuestInfos", query={"StampId": stampid, "VMId": vmid})
for guest_info in guest_infos: for guest_info in guest_infos:
addresses += guest_info.properties["IPv4Addresses"].split(";") addresses += guest_info.properties["IPv4Addresses"].split(";")
print(addresses)
except: except:
pass pass
addresses = [a for a in addresses if a] addresses = [a for a in addresses if a]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment