Feature #4524: Add Network and SSH context to imported vCenter templates

This commit is contained in:
Tino Vazquez committed 2016-06-08 17:49:40 +02:00
1 parent 0b2e644a18
commit ca4fcebfa4
1 file changed
+4 -1
@@ -1835,7 +1835,10 @@ class VCenterVm
" TYPE =\"vnc\",\n"\
" LISTEN =\"0.0.0.0\"\n"\
"]\n"\
"SCHED_REQUIREMENTS=\"NAME=\\\"#{cluster_name}\\\"\"\n"
"SCHED_REQUIREMENTS=\"NAME=\\\"#{cluster_name}\\\"\"\n"\
"CONTEXT = ["\
" NETWORK = \"YES\","\
" SSH_PUBLIC_KEY = \"$USER[SSH_PUBLIC_KEY]\" ]"
if @vm.config.annotation.nil? || @vm.config.annotation.empty?
str << "DESCRIPTION = \"vCenter Template imported by OpenNebula"\