From cd49f9c6fb2566fddcfaff90f5cd1df89bd495b3 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Sat, 24 Sep 2011 19:55:42 +0200 Subject: [PATCH] Bug #820: Saveas fails if image name has spaces. Now the template is generated to deal with this case (cherry picked from commit e92b0f2bfacec91da30ae956441e5504e4eb3cec) --- src/rm/RequestManagerVirtualMachine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rm/RequestManagerVirtualMachine.cc b/src/rm/RequestManagerVirtualMachine.cc index efae90e0f7..cdbef2c83e 100644 --- a/src/rm/RequestManagerVirtualMachine.cc +++ b/src/rm/RequestManagerVirtualMachine.cc @@ -408,7 +408,7 @@ void VirtualMachineSaveDisk::request_execute(xmlrpc_c::paramList const& paramLis // ------------------ Template for the new image ------------------ - oss << "NAME= " << img_name << endl; + oss << "NAME= \"" << img_name << "\"" << endl; oss << "PUBLIC = NO " << endl; oss << "SOURCE = - " << endl;