Skip to content

Commit f23148f

Browse files
Salem HarracheSalemHarrache
Salem Harrache
authored andcommitted
Fixed default global Hash values
1 parent fa77e39 commit f23148f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kameleon/recipe.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ def load!(kwargs = {})
109109
yaml_recipe["global"][context_name] = {}
110110
end
111111
@global[context_name].merge!(yaml_recipe["global"][context_name])
112+
yaml_recipe["global"][context_name] = @global[context_name]
112113
unless yaml_recipe["global"][context_name].keys.include? "interactive_cmd"
113114
yaml_recipe["global"][context_name]["interactive_cmd"] = yaml_recipe["global"][context_name]['cmd']
114115
end
115116
end
116-
117117
# Load Global variables
118118
@global.merge!(yaml_recipe.fetch("global", {}))
119119
# merge cli variable with recursive variable overload

0 commit comments

Comments
 (0)