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:
parent
8af6b6cd2e
commit
ab029cf025
1 changed files with 1 additions and 1 deletions
|
@ -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}"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue