diff --git a/resources/module.rb b/resources/module.rb index cc14a80..e235a4a 100644 --- a/resources/module.rb +++ b/resources/module.rb @@ -43,7 +43,7 @@ def selinux_module_filepath(type) end def list_installed_modules - shell_out!('semodule --list-modules').stdout.split("\n") + shell_out!('semodule --list-modules').stdout.split("\n").map{ |x| x.split(/\s/)[0] } end end