Hey seba nice script, and congratulations on the library...
Im having a problem on the last line, my server is just s, and another question, on the part that says if dev_changes, does that compare if Im really changing de devices configuration or just checks if there is something to be made?
>>> ret = s._proxy.ReconfigVM_Task(request)._returnval
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/resources/VimService_services.py", line 2863, in ReconfigVM_Task
self.binding.Send(None, None, request, soapaction="urn:vim25/5.0", **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/client.py", line 250, in Send
sw.serialize(obj, tc)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/writer.py", line 141, in serialize
elt = typecode.serialize(self.body, self, pyobj, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TC.py", line 617, in serialize
pyobj.typecode.serialize(elt, sw, pyobj, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TCcompound.py", line 248, in serialize
self.cb(elt, sw, pyobj, name=name, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TCcompound.py", line 397, in cb
what.serialize(elem, sw, v, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TCcompound.py", line 248, in serialize
self.cb(elt, sw, pyobj, name=name, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TCcompound.py", line 397, in cb
what.serialize(elem, sw, v, **kw)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TC.py", line 512, in serialize
self.serialize_text_node(el, sw, pyobj)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TC.py", line 464, in serialize_text_node
text = self.get_formatted_content(pyobj)
File "/Users/maumercado/.venv/iscloud/src/pysphere/pysphere/ZSI/TC.py", line 1004, in get_formatted_content
return self.format %pyobj
TypeError: %d format: a number is required, not str
Thanks!