Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit cd14d02

Browse files
author
Belmin Fernandez
committed
awk escaping + confine fix
1 parent 63bd8a6 commit cd14d02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/facter/selinux_custom_policy.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
require 'facter'
66

77
Facter.add(:selinux_custom_policy) do
8-
confine :kernel => 'Linux', :osfamily => 'RedHat', :operatingsystemmajrelease => '7', :selinux => true
8+
confine :kernel => 'Linux', :osfamily => 'RedHat', :operatingsystemmajrelease => '7', :selinux => ['true', true]
99
setcode do
10-
Facter::Util::Resolution.exec("sestatus | grep 'Loaded policy name' | awk '{ print $4 }'")
10+
Facter::Util::Resolution.exec("sestatus | grep 'Loaded policy name' | awk '{ print \$4 }'")
1111
end
1212
end

0 commit comments

Comments
 (0)