pyvcloud icon indicating copy to clipboard operation
pyvcloud copied to clipboard

VMSpecSection is not available in vm resource information using vCD API 30

Open randalb1991 opened this issue 4 years ago • 1 comments

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.

bugpyvcloud

randalb1991 avatar Jul 09 '20 12:07 randalb1991

@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.

mukultaneja avatar Aug 20 '20 18:08 mukultaneja