Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template.instantiate doesn't work #8

Open
d3dx9 opened this issue Dec 21, 2017 · 1 comment
Open

template.instantiate doesn't work #8

d3dx9 opened this issue Dec 21, 2017 · 1 comment

Comments

@d3dx9
Copy link

d3dx9 commented Dec 21, 2017

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

@feldsam
Copy link
Contributor

feldsam commented Dec 4, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants