mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-09 22:14:13 +09:00
Feature #4524: Add Network and SSH context to imported vCenter templates
This commit is contained in:
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"\
|
||||
|
||||
Reference in new issue
Block a user