Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 49febbcf8396097f89eff7693adb7584e320062b 2 parents 75e7006 + 36782c8
Wesley Beary authored
View
1  lib/fog/compute/models/aws/server.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'
View
2  lib/fog/compute/parsers/aws/describe_instances.rb
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.