Skip to content

Commit

Permalink
Was not using the %r syntax correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncstate-daniel committed Jun 12, 2019
1 parent 29d87b2 commit f0b7fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/posix_acl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def insync?(is)
s = p.tr '-', ''
r << (s.sub!('r', '') ? 'r' : '-')
r << (s.sub!('w', '') ? 'w' : '-')
r << (s.sub!(%r{/x/i}, '') ? $LAST_MATCH_INFO.to_s : '-')
r << (s.sub!(%r{x}i, '') ? $LAST_MATCH_INFO.to_s : '-')
raise ArgumentError, %(Invalid permission set "#{p}".) unless s.empty?
end
r
Expand Down

0 comments on commit f0b7fae

Please sign in to comment.