From 839da81bff1d6737754ec5ba5107ebdf450d3a09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20S=2E=20Montero?= Date: Mon, 30 Mar 2009 15:09:13 +0000 Subject: [PATCH] build strings to pass to OneClient methods git-svn-id: http://svn.opennebula.org/one/trunk@435 3034c82b-c49b-4eb3-8279-a7acafdc01c0 --- src/client/OneClient_C_Wrapper.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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<