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 0127026 commit bcf7028Copy full SHA for bcf7028
lib/octocatalog-diff/catalog-util/command.rb
@@ -91,7 +91,7 @@ def setup
91
facts_terminus = @options.fetch(:facts_terminus, 'yaml')
92
if facts_terminus == 'yaml'
93
cmdline << "--factpath=#{Shellwords.escape(File.join(@compilation_dir, 'var', 'yaml', 'facts'))}"
94
- if @options[:fact_file].is_a?(String) && @options[:fact_file] =~ /.*\.(\w+)$/
+ if @options[:fact_file].is_a?(String) && @options[:fact_file] =~ /.*{1,1000}\.(\w+)$/
95
fact_file = File.join(@compilation_dir, 'var', 'yaml', 'facts', "#{@node}.#{Regexp.last_match(1)}")
96
FileUtils.cp @options[:fact_file], fact_file unless File.file?(fact_file) || @options[:fact_file] == fact_file
97
end
0 commit comments