mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-02 13:16:48 +09:00
M #-: Allow empty provider.inputs (#624)
This commit is contained in:
1 parent
3187ff05f3
commit
0f5ccdd199
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user