Skip to content

Commit bcf7028

Browse files
committed
Update command.rb
1 parent 0127026 commit bcf7028

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
@@ -91,7 +91,7 @@ def setup
9191
facts_terminus = @options.fetch(:facts_terminus, 'yaml')
9292
if facts_terminus == 'yaml'
9393
cmdline << "--factpath=#{Shellwords.escape(File.join(@compilation_dir, 'var', 'yaml', 'facts'))}"
94-
if @options[:fact_file].is_a?(String) && @options[:fact_file] =~ /.*\.(\w+)$/
94+
if @options[:fact_file].is_a?(String) && @options[:fact_file] =~ /.*{1,1000}\.(\w+)$/
9595
fact_file = File.join(@compilation_dir, 'var', 'yaml', 'facts', "#{@node}.#{Regexp.last_match(1)}")
9696
FileUtils.cp @options[:fact_file], fact_file unless File.file?(fact_file) || @options[:fact_file] == fact_file
9797
end

0 commit comments

Comments
 (0)