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

Set imageOwnerAlias to self. Not 100% on this, but it will allow you to search for images with 'owner-alias' => 'self'

This commit is contained in:
Dylan Egan 2011-08-04 12:40:57 -07:00
parent a61f1d8e30
commit 0776800b94
3 changed files with 4 additions and 1 deletions

View file

@ -13,6 +13,7 @@ module Fog
attribute :description
attribute :location, :aliases => 'imageLocation'
attribute :owner_id, :aliases => 'imageOwnerId'
attribute :owner_alias, :aliases => 'imageOwnerAlias'
attribute :state, :aliases => 'imageState'
attribute :type, :aliases => 'imageType'
attribute :is_public, :aliases => 'isPublic'

View file

@ -25,6 +25,7 @@ module Fog
# * 'description'<~String> - Description of image
# * 'imageId'<~String> - Id of the image
# * 'imageLocation'<~String> - Location of the image
# * 'imageOwnerAlias'<~String> - Alias of the owner of the image
# * 'imageOwnerId'<~String> - Id of the owner of the image
# * 'imageState'<~String> - State of the image
# * 'imageType'<~String> - Type of the image
@ -80,6 +81,7 @@ module Fog
'kernel-id' => 'kernelId',
'manifest-location' => 'manifestLocation',
'name' => 'name',
'owner-alias' => 'imageOwnerAlias',
'owner-id' => 'imageOwnerId',
'ramdisk-id' => 'ramdiskId',
'root-device-name' => 'rootDeviceName',

View file

@ -79,7 +79,7 @@ module Fog
'ramdiskId' => Fog::AWS::Mock.ramdisk_id,
'platform' => 'Linux',
'stateReason' => {},
'imageOwnerAlias' => self.data[:owner_id],
'imageOwnerAlias' => 'self',
'name' => name,
'description' => description,
'rootDeviceType' => '',