diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/util/selinux.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/selinux.rb b/lib/puppet/util/selinux.rb index 6a9bcaf79..c25773344 100644 --- a/lib/puppet/util/selinux.rb +++ b/lib/puppet/util/selinux.rb @@ -51,7 +51,7 @@ module Puppet::Util::SELinux # out to the three (or four) component parts. Supports :seluser, :selrole, # :seltype, and on systems with range support, :selrange. def parse_selinux_context(component, context) - if context == "unlabeled" + if context.nil? or context == "unlabeled" return nil end unless context =~ /^[a-z0-9_]+:[a-z0-9_]+:[a-z0-9_]+(:[a-z0-9_])?/ |