mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
appenv: use the given name for node creation
This commit is contained in:
1 parent
f9795b16d4
commit
3e08ed75d7
1 file changed
+2
-1
Vendored
+2
-1
@@ -48,13 +48,14 @@ helpers do
|
||||
|
||||
def appenv_create(template)
|
||||
node = OpenNebula::ChefConf.new
|
||||
node.name = template['name']
|
||||
node.description = template['description'] if template['description']
|
||||
node.cookbooks = template['cookbooks'] if template['cookbacks']
|
||||
node.templates = template['templates'] if template['templates']
|
||||
#variables currently unused
|
||||
node.variables = template['variables'] if template['variables']
|
||||
node.node = template['node'] if template['node']
|
||||
node.name = template['name'] if template['name'] &&
|
||||
!template['name'].empty?
|
||||
|
||||
client = settings.cloud_auth.client(session[:user])
|
||||
doc = node.save(client)[0]
|
||||
|
||||
Reference in new issue
Block a user