1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

tweak tagged_resources to support both long and short identifiers

This commit is contained in:
geemus 2019-05-13 09:16:12 -05:00
parent 8af6b6cd2e
commit ab029cf025

View file

@ -454,7 +454,7 @@ module Fog
def tagged_resources(resources)
Array(resources).map do |resource_id|
if match = resource_id.match(/^(\w+)-[a-z0-9]{8}/i)
if match = resource_id.match(/^(\w+)-[a-z0-9]{8,17}/i)
id = match.captures.first
else
raise(Fog::Service::NotFound.new("Unknown resource id #{resource_id}"))