Fix segfault when updateconf with FILEDS

This commit is contained in:
Ruben S. Montero committed 2018-04-20 10:48:18 +02:00
1 parent 2e3d577a4e
commit bdb496d443
1 file changed
+2
+2
View File
@@ -2597,6 +2597,8 @@ int VirtualMachine::updateconf(VirtualMachineTemplate& tmpl, string &err)
return -1;
}
context_new = obj_template->get("CONTEXT");
if ( !files_ds.empty() )
{
context_new->replace("FILES_DS", files_ds);