mirror of
https://github.com/OpenNebula/one.git
synced 2025-08-25 21:49:29 +03:00
Assigns PENDING state to newly allocated flows
This commit is contained in:
@ -180,6 +180,12 @@ module OpenNebula
|
||||
template = JSON.parse(template_json)
|
||||
template['state'] = STATE['PENDING']
|
||||
|
||||
if template['roles']
|
||||
template['roles'].each { |elem|
|
||||
elem['state'] ||= Role::STATE['PENDING']
|
||||
}
|
||||
end
|
||||
|
||||
super(template.to_json, template['name'])
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user