Switch to a regex match to ignore \n's.

This commit is contained in:
Ashley Penney 2014-02-27 17:31:46 +00:00
parent 35ea4ebb64
commit ef86a33997

View file

@ -46,7 +46,7 @@ describe 'postgresql::server::tablespace:' do
shell('mkdir -p /tmp/postgres')
# Apply appropriate selinux labels
if fact('osfamily') == 'RedHat'
if shell('getenforce').stdout == 'Enforcing'
if shell('getenforce').stdout =~ /Enforcing/
shell('chcon -Rv --type=postgresql_db_t /tmp/postgres')
end
end