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:
parent
3187ff05f3
commit
0f5ccdd199
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user