Skip to content

Commit afe2aa3

Browse files
author
Calum Gilchrist
committed
Allow Passing Environment into the Puppet Command
1 parent bc0f906 commit afe2aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/octocatalog-diff/catalog-util/command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def puppet_command
7878
# Add environment - only make this variable if preserve_environments is used.
7979
# If preserve_environments is not used, the hard-coded 'production' here matches
8080
# up with the symlink created under the temporary directory structure.
81-
environ = @options[:preserve_environments] ? @options.fetch(:environment, 'production') : 'production'
81+
environ = @options.fetch(:environment, 'production')
8282
cmdline << "--environment=#{Shellwords.escape(environ)}"
8383

8484
# For people who aren't running hiera, a hiera-config will not be generated when @options[:hiera_config]

0 commit comments

Comments
 (0)