Skip to content

Commit

Permalink
change name to fetch_os_name
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianiurca committed Nov 16, 2020
1 parent f6473a4 commit c921036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/acceptance/firewall_attributes_exceptions_spec.rb
Expand Up @@ -19,7 +19,7 @@
# Skipping those from which we know they would fail.
describe 'bytecode property', unless: (os[:family] == 'redhat' && os[:release][0] <= '6') ||
(os[:family] == 'sles' && os[:release][0..1] <= '11') ||
(get_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
(fetch_os_name == 'oraclelinux' && os[:release][0] <= '7') ||
(os[:family] == 'ubuntu') do
describe 'bytecode' do
context '4,48 0 0 9,21 0 1 6,6 0 0 1,6 0 0 0' do
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper_acceptance_local.rb
Expand Up @@ -43,7 +43,7 @@ def update_profile_file
run_shell("sed -i '/mesg n || true/c\\test -t 0 && mesg n || true' ~/.profile")
end

def get_os_name # rubocop:disable Style/AccessorMethodName: Do not prefix reader method names with get_
def fetch_os_name
@facter_os_name ||= run_shell('facter os.name').stdout.delete("\n").downcase
end

Expand Down

0 comments on commit c921036

Please sign in to comment.