M #-: fix minor bug in DDC playbooks (#4687)

This commit is contained in:
Alejandro Huertas Herrero authored and GitHub committed 2020-05-11 13:16:04 +02:00
1 parent 54d60c4223
commit 7dc4b0033f
1 file changed
+4 -2
+4 -2
View File
@@ -242,8 +242,10 @@ module OneProvision
base.delete('playbook')
end
yaml['playbook'] = [yaml['playbook']]
yaml['playbook'].flatten!
if yaml['playbook']
yaml['playbook'] = [yaml['playbook']]
yaml['playbook'].flatten!
end
# replace scalars or append array from child YAML
yaml.each do |key, value|