Skip to content

Commit 6ee37ea

Browse files
committed
Fix comment in uid and gid insync
1 parent 27ec1b7 commit 6ee37ea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/puppet/type/firewall.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,14 +1390,14 @@ def insync?(is)
13901390
should_negate = '!'
13911391
end
13921392

1393-
# If 'should' contains anything other than digits,
1393+
# If 'should' contains anything other than digits or digit range,
13941394
# we assume that we have to do a lookup to convert
13951395
# to UID
13961396
unless should[%r{[0-9]+(-[0-9]+)?}] == should
13971397
should = Etc.getpwnam(should).uid
13981398
end
13991399

1400-
# If 'is' contains anything other than digits,
1400+
# If 'is' contains anything other than digits or digit range,
14011401
# we assume that we have to do a lookup to convert
14021402
# to UID
14031403
unless is[%r{[0-9]+(-[0-9]+)?}] == is
@@ -1439,16 +1439,16 @@ def insync?(is)
14391439
should_negate = '!'
14401440
end
14411441

1442-
# If 'should' contains anything other than digits,
1442+
# If 'should' contains anything other than digits or digit range,
14431443
# we assume that we have to do a lookup to convert
1444-
# to UID
1444+
# to GID
14451445
unless should[%r{[0-9]+(-[0-9]+)?}] == should
14461446
should = Etc.getgrnam(should).gid
14471447
end
14481448

1449-
# If 'is' contains anything other than digits,
1449+
# If 'is' contains anything other than digits or digit range,
14501450
# we assume that we have to do a lookup to convert
1451-
# to UID
1451+
# to GID
14521452
unless is[%r{[0-9]+(-[0-9]+)?}] == is
14531453
is = Etc.getgrnam(is).gid
14541454
end

0 commit comments

Comments
 (0)