Mailing List Archive

Getting FIELD_TYPE_ERROR
Using Python 3

session.xenapi.VM.set_VCPUs_max(newvm, cpus)

*The parameters that are going to request are session_id, vm_id,
no_of_vcpu's*
*The vm is in halted state*
*('OpaqueRef:06d954c3-3c3a-a8a8-8143-6532a145bd57',
'OpaqueRef:9d74d397-9058-ec16-1a0f-5aea7fd5d952', 4)*

*But getting error of field_type_error {'ErrorDescription':
['FIELD_TYPE_ERROR', 'value'], 'Status': 'Failure'}*

Can you guys please help me where am I doing wrong ???
what should be value of vcpu's ???