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

[compute|aws] Respect extra register_image options when mocking.

This commit is contained in:
Dan Peterson 2012-05-29 15:18:28 -03:00
parent 0ed426b714
commit f4ddd0eac5

View file

@ -73,10 +73,10 @@ module Fog
'imageOwnerId' => self.data[:owner_id],
'isPublic' => false,
'productCodes' => [],
'architecture' => 'i386',
'architecture' => options['Architecture'] || 'i386',
'imageType' => 'machine',
'kernelId' => Fog::AWS::Mock.kernel_id,
'ramdiskId' => Fog::AWS::Mock.ramdisk_id,
'kernelId' => options['KernelId'] || Fog::AWS::Mock.kernel_id,
'ramdiskId' => options['RamdiskId'] || Fog::AWS::Mock.ramdisk_id,
'platform' => 'Linux',
'stateReason' => {},
'imageOwnerAlias' => self.data[:owner_id],