From 6ee37ea79cb45239882457edc9ef413be064d799 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Fri, 1 Oct 2021 14:17:45 -0400 Subject: [PATCH] Fix comment in uid and gid insync --- lib/puppet/type/firewall.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index 75724f7..e4cb1a2 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -1390,14 +1390,14 @@ Puppet::Type.newtype(:firewall) do should_negate = '!' end - # If 'should' contains anything other than digits, + # If 'should' contains anything other than digits or digit range, # we assume that we have to do a lookup to convert # to UID unless should[%r{[0-9]+(-[0-9]+)?}] == should should = Etc.getpwnam(should).uid end - # If 'is' contains anything other than digits, + # If 'is' contains anything other than digits or digit range, # we assume that we have to do a lookup to convert # to UID unless is[%r{[0-9]+(-[0-9]+)?}] == is @@ -1439,16 +1439,16 @@ Puppet::Type.newtype(:firewall) do should_negate = '!' end - # If 'should' contains anything other than digits, + # If 'should' contains anything other than digits or digit range, # we assume that we have to do a lookup to convert - # to UID + # to GID unless should[%r{[0-9]+(-[0-9]+)?}] == should should = Etc.getgrnam(should).gid end - # If 'is' contains anything other than digits, + # If 'is' contains anything other than digits or digit range, # we assume that we have to do a lookup to convert - # to UID + # to GID unless is[%r{[0-9]+(-[0-9]+)?}] == is is = Etc.getgrnam(is).gid end -- 2.45.2