Skip to content

Commit

Permalink
fix: inspec from minion fallback to pillar.example
Browse files Browse the repository at this point in the history
  • Loading branch information
muddman committed Mar 10, 2020
2 parents 469160b + 22760ef commit 533e72a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integration/default/libraries/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def get_pillar_from_inspec_pillar_file
Inspec::Log.debug('[get_pillar_from_inspec_pillar_file] returning cached value')
return @cache_pillar_from_inspec_pillar_file
end
pillar_file = ENV['INSPEC_TEST_SALT_PILLAR'] || 'test/salt/pillar/windows.sls'
pillar_file = ENV['INSPEC_TEST_SALT_PILLAR'] || 'pillar.example'
begin
@cache_pillar_from_inspec_pillar_file = YAML.safe_load(File.read(pillar_file)) if File.exist?(pillar_file)
rescue StandardError => e
Expand Down

0 comments on commit 533e72a

Please sign in to comment.