pyvcloud
pyvcloud copied to clipboard
VMSpecSection is not available in vm resource information using vCD API 30
When I use the method vm.get_cpu() it tries to recover the info from resources previously loaded:
def get_memory(self):
"""Returns the amount of memory in MB.
:return: amount of memory in MB.
:rtype: int
"""
self.get_resource()
return int(
self.resource.VmSpecSection.MemoryResourceMb.Configured.text)
but the section VmSpecSection doesn't exist in resouce object(at least using vCD API 30). This make the requests ends with errors.
@randalb1991 which VCD version are you trying to access using 30.0 API? If you are trying VCD 10.0 then can you please try with 33.0 once as 30.0 is primarily used for VCD 9.1.