mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
1 parent
7a4a83cefd
commit
1a07ff0419
1 file changed
+6
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user