1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-20 10:50:08 +03:00

M #-: Allow empty provider.inputs (#624)

This commit is contained in:
Jan Orel 2021-01-13 09:29:41 +01:00 committed by GitHub
parent 3187ff05f3
commit 0f5ccdd199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,11 @@ module OneProvision
end
@provider = provider
cfg['inputs'] = cfg['inputs'] | provider.inputs
if cfg['inputs'].nil?
cfg['inputs'] = provider.inputs
else
cfg['inputs'] << provider.inputs unless provider.inputs.nil?
end
cfg.validate(false)