Skip to content

Commit

Permalink
Fixed broken test and made a minor linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-riddle committed Jul 9, 2024
1 parent b508f79 commit 50a40ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/kmod_blacklist.pp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

$_produce_error = $produce_error ? {
true => '/bin/false',
false => '/bin/true'
false => '/bin/true',
}

$_disable_file_content = join($_blacklist.map |$mod| { "install ${mod} ${_produce_error}" }, "\n")
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/00_classes/kmod_blacklist_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
}}

it 'should blacklist all the default kmods and point to /bin/false' do
is_expected.to create_file("/etc/modprobe.d/00_simp_disable.conf").with_content(stock_blacklist.map{|x| x = "install #{x} /bin/false" }.join("\n") + "\n")
is_expected.to create_file("/etc/modprobe.d/zz_simp_disable.conf").with_content(stock_blacklist.map{|x| x = "install #{x} /bin/false" }.join("\n") + "\n")
end
end

Expand Down

0 comments on commit 50a40ad

Please sign in to comment.