From 27ec1b758e1d095f2feb8522d275743647c93d58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?F=C3=A9lix-Antoine=20Fortin?= Date: Fri, 1 Oct 2021 14:11:39 -0400 Subject: [PATCH] Fix gid insync regex for converting to GID --- lib/puppet/type/firewall.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/puppet/type/firewall.rb b/lib/puppet/type/firewall.rb index ffbfcb1..75724f7 100644 --- a/lib/puppet/type/firewall.rb +++ b/lib/puppet/type/firewall.rb @@ -1442,14 +1442,14 @@ Puppet::Type.newtype(:firewall) do # If 'should' contains anything other than digits, # we assume that we have to do a lookup to convert # to UID - unless should[%r{[0-9]+}] == should + unless should[%r{[0-9]+(-[0-9]+)?}] == should should = Etc.getgrnam(should).gid end # If 'is' contains anything other than digits, # we assume that we have to do a lookup to convert # to UID - unless is[%r{[0-9]+}] == is + unless is[%r{[0-9]+(-[0-9]+)?}] == is is = Etc.getgrnam(is).gid end -- 2.45.2