1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

F #2645: Back to version 1 in configuration files (#2932)

This commit is contained in:
Alejandro Huertas Herrero 2019-02-13 13:32:10 +01:00 committed by Tino Vázquez
parent 7a4a83cefd
commit 1a07ff0419

View File

@ -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