]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
Update spec/spec_helper_acceptance_local.rb
authorAdrian Iurca <45214757+adrianiurca@users.noreply.github.com>
Mon, 16 Nov 2020 21:09:28 +0000 (23:09 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 21:09:28 +0000 (23:09 +0200)
Co-authored-by: David Schmitt <david.schmitt@puppet.com>
spec/spec_helper_acceptance_local.rb

index 66dfe5d6e437ec51d600ac33463bdab7aa050ea2..b6d58ef0a94d11f0f4fdc2d026a41d6f5281c934 100644 (file)
@@ -44,7 +44,7 @@ def update_profile_file
 end
 
 def get_os_name # rubocop:disable Style/AccessorMethodName: Do not prefix reader method names with get_
-  run_shell('facter os.name').stdout.delete("\n").downcase
+  @facter_os_name ||= run_shell('facter os.name').stdout.delete("\n").downcase
 end
 
 RSpec.configure do |c|