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

This commit is contained in:
Jan Orel authored and GitHub committed 2021-01-13 09:29:41 +01:00
1 parent 3187ff05f3
commit 0f5ccdd199
1 file changed
+5 -1
+5 -1
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)