We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59af531 commit 3c35455Copy full SHA for 3c35455
lib/kubernetes_template_rendering/cli.rb
@@ -35,8 +35,11 @@ def parse(options)
35
op.on("--source-repo=SOURCE_REPO", "set the source repo for the rendered templates") { args.source_repo = _1 }
36
37
op.on("--variable-override=KEY:VALUE", "override a variable value set within definitions.yaml") do |override|
38
- args.variable_overrides ||= {}
39
- args.variable_overrides.merge!(Hash[[override.split(":", 2)]])
+ args.variable_overrides ||= {} # Initialize as a Hash
+ overrides.each do |override|
40
+ key, value = override.split(":", 2)
41
+ args.variable_overrides[key] = value if key && value
42
+ end
43
end
44
45
op.on("-h", "--help") do
0 commit comments