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:
parent
b8c6d0421a
commit
f19f102cfa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue