lib/jets/resource/permission.rb in jets-1.7.2 vs lib/jets/resource/permission.rb in jets-1.8.0
- old
+ new
@@ -26,10 +26,10 @@
definition
end
def permission_logical_id
logical_id = "{namespace}_permission"
- md = @associated_resource.logical_id.match(/(\d+)/)
+ md = @associated_resource.logical_id.match(/(\d+)$/)
counter = md[1] if md
[logical_id, counter].compact.join('').underscore
end
# Auto-detect principal from the associated resources.