Skip to content

Commit 48f5040

Browse files
author
Kevin Paulisse
committed
Require :hiera_path to be a string before processing it
1 parent 88f8a6f commit 48f5040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def install_hiera_config(logger, options)
203203
next if obj[key.to_sym][:datadir].nil?
204204
rexp1 = Regexp.new('^' + options[:hiera_path_strip])
205205
obj[key.to_sym][:datadir].sub!(rexp1, @tempdir)
206-
elsif options[:hiera_path]
206+
elsif options[:hiera_path].is_a?(String)
207207
obj[key.to_sym][:datadir] = File.join(@tempdir, 'environments', 'production', options[:hiera_path])
208208
end
209209
rexp2 = Regexp.new('%{(::)?environment}')

0 commit comments

Comments
 (0)