From eff373d6227eb6c336f993b9ba0efd7036ee1e5b Mon Sep 17 00:00:00 2001 From: geemus Date: Sun, 5 Dec 2010 20:27:42 -0800 Subject: [PATCH] [aws|compute] add description to images --- lib/fog/aws/models/compute/image.rb | 1 + lib/fog/aws/parsers/compute/describe_images.rb | 2 +- lib/fog/aws/requests/compute/describe_images.rb | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/aws/models/compute/image.rb b/lib/fog/aws/models/compute/image.rb index 9be7b11f4..e595b7551 100644 --- a/lib/fog/aws/models/compute/image.rb +++ b/lib/fog/aws/models/compute/image.rb @@ -10,6 +10,7 @@ module Fog attribute :architecture attribute :block_device_mapping, :aliases => 'blockDeviceMapping' + attribute :description attribute :location, :aliases => 'imageLocation' attribute :owner_id, :aliases => 'imageOwnerId' attribute :state, :aliases => 'imageState' diff --git a/lib/fog/aws/parsers/compute/describe_images.rb b/lib/fog/aws/parsers/compute/describe_images.rb index ae341e8bc..4597e015e 100644 --- a/lib/fog/aws/parsers/compute/describe_images.rb +++ b/lib/fog/aws/parsers/compute/describe_images.rb @@ -26,7 +26,7 @@ module Fog def end_element(name) case name - when 'architecture', 'imageId', 'imageLocation', 'imageOwnerId', 'imageState', 'imageType', 'kernelId', 'platform', 'ramdiskId', 'rootDeviceType','rootDeviceName' + when 'architecture', 'description', 'imageId', 'imageLocation', 'imageOwnerId', 'imageState', 'imageType', 'kernelId', 'platform', 'ramdiskId', 'rootDeviceType','rootDeviceName' @image[name] = @value when 'blockDeviceMapping' @in_block_device_mapping = false diff --git a/lib/fog/aws/requests/compute/describe_images.rb b/lib/fog/aws/requests/compute/describe_images.rb index 84b76f9ea..2f0f2443f 100644 --- a/lib/fog/aws/requests/compute/describe_images.rb +++ b/lib/fog/aws/requests/compute/describe_images.rb @@ -22,6 +22,7 @@ module Fog # * 'imagesSet'<~Array>: # * 'architecture'<~String> - Architecture of the image # * 'blockDeviceMapping'<~Array> - An array of mapped block devices + # * 'description'<~String> - Description of image # * 'imageId'<~String> - Id of the image # * 'imageLocation'<~String> - Location of the image # * 'imageOwnerId'<~String> - Id of the owner of the image