template.instantiate doesn't work
Hey there,
actually I'm pretty new to your addon, but I think this is a bug looking on the old report.
Error: XML-RPC fault: Parameter that is supposed to be integer is not
I think, there also came a new parameter when I looking in their documents.
Best, d3dx9
Hello @d3dx9, I think that there is no bug, but you are passing wrong type of state argument, it have to be boolean.
There are docs https://docs.opennebula.org/5.0/integration/system_interfaces/api.html#one-template-instantiate. I checked impementation, and it is according to docs.
First two arguments (Session string and Object ID) are automatically added by this package, so you just need to define name, state and template, where name is string, state is boolean and template is string
EDIT: I reading your issue again and it requests integer type argument, so I beleive, that you are passing non-integer id when you are creating resource var template = one.getTemplate(4);. Probably you have var template = one.getTemplate('4'); in code, but ID have to be integer