diff --git a/src/client/OneClient_C_Wrapper.cc b/src/client/OneClient_C_Wrapper.cc index b958a56b00..8f21bef58a 100644 --- a/src/client/OneClient_C_Wrapper.cc +++ b/src/client/OneClient_C_Wrapper.cc @@ -88,12 +88,14 @@ int c_oneMigrate(int vmid, int hid, int flag) int c_oneAllocate(char* vm_template) { string info; + string template_file(vm_template); + int vmid; if (!client) return -1; - if( (client->allocate(vm_template,vmid, info)) <0) + if( (client->allocate(template_file,vmid, info)) <0) { cerr<allocate_template(vm_template,vmid, info)) <0) + if( (client->allocate_template(template_str,vmid, info)) <0) { cerr<