From 681fbe6a6519003477e9865d8f8b6975f293ba5f Mon Sep 17 00:00:00 2001 From: Robert Detjens Date: Fri, 20 Aug 2021 15:14:28 -0700 Subject: [PATCH] fix module list on c7 Signed-off-by: Robert Detjens --- resources/module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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