mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-23 22:50:09 +03:00
parent
7a4a83cefd
commit
1a07ff0419
@ -81,7 +81,12 @@ module OneProvision
|
||||
version = config['version']
|
||||
defaults = config['defaults']['provision']
|
||||
|
||||
if name.nil? && version == 2
|
||||
if !version.nil? && version != 1
|
||||
Utils.fail('There is an error in your configuration ' \
|
||||
'file: Unsupported version')
|
||||
end
|
||||
|
||||
if name.nil?
|
||||
Utils.fail('There is an error in your configuration ' \
|
||||
'file: no name given')
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user