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

allow for longer spot instance ids in mocks

This commit is contained in:
geemus 2020-10-26 08:47:13 -05:00
parent b8c6d0421a
commit f19f102cfa

View file

@ -113,7 +113,7 @@ module Fog
raise Fog::AWS::Compute::Error.new(message)
end
if !image_id.match(/^ami-[a-f0-9]{8}$/)
if !image_id.match(/^ami-[a-f0-9]{8,17}$/)
message = "The image id '[#{image_id}]' does not exist"
raise Fog::AWS::Compute::NotFound.new(message)
end