Commit 7bcea020 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Avoid image name double escaping in vm wizard

parent 8bc521b2
......@@ -1347,7 +1347,8 @@
if (!params.image) { return }
var vm_name_tpl = snf.config.vm_name_template || "My {0} server";
var vm_name = vm_name_tpl.format(_.escape(params.image.get("name")));
if (params.image.is_snapshot()) { vm_name_tpl = "{0}" };
var vm_name = vm_name_tpl.format(params.image.get("name"));
var orig_name = vm_name;
var existing = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment