Permalink
Browse files

Merge pull request #449 from coliver/master

[aws|compute] Added missing 'platform' attribute to server model and describe instances request.
  • Loading branch information...
2 parents 75e7006 + 36782c8 commit 49febbcf8396097f89eff7693adb7584e320062b Wesley Beary committed Jul 26, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/fog/compute/models/aws/server.rb
  2. +1 −1 lib/fog/compute/parsers/aws/describe_instances.rb
@@ -25,6 +25,7 @@ class Server < Fog::Model
attribute :created_at, :aliases => 'launchTime'
attribute :monitoring, :squash => 'state'
attribute :placement_group, :aliases => 'groupName'
+ attribute :platform, :aliases => 'platform'
attribute :product_codes, :aliases => 'productCodes'
attribute :private_dns_name, :aliases => 'privateDnsName'
attribute :private_ip_address, :aliases => 'privateIpAddress'
@@ -30,7 +30,7 @@ def end_element(name)
@instance['placement'][name] = value
when 'architecture', 'clientToken', 'dnsName', 'imageId',
'instanceId', 'instanceType', 'ipAddress', 'kernelId',
- 'keyName', 'privateDnsName', 'privateIpAddress', 'ramdiskId',
+ 'keyName', 'platform', 'privateDnsName', 'privateIpAddress', 'ramdiskId',
'reason', 'rootDeviceType'
@instance[name] = value
when 'attachTime'

0 comments on commit 49febbc

Please sign in to comment.