Skip to content

Commit 9c85734

Browse files
authored
Clean up legacy fact usage (#113)
1 parent cd252e3 commit 9c85734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/classes/init_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134

135135
context 'with default parameters' do
136136
it { is_expected.to create_class('aide') }
137-
if os_facts[:operatingsystemmajrelease] < '8'
137+
if os_facts[:os][:release][:major] < '8'
138138
it { is_expected.to contain_concat__fragment('aide.conf').with_content(<<~EOM
139139
@@define DBDIR /var/lib/aide
140140
@@define LOGDIR /var/log/aide

0 commit comments

Comments
 (0)