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

[aws|compute] tweaks for servers

This commit is contained in:
geemus 2010-10-04 15:53:58 -07:00
parent 097f460ec6
commit 7f48b10559
2 changed files with 1 additions and 4 deletions

View file

@ -12,7 +12,6 @@ module Fog
attribute :ami_launch_index, :aliases => 'amiLaunchIndex'
attribute :availability_zone, :aliases => 'availabilityZone'
attribute :block_device_mapping, :aliases => 'blockDeviceMapping'
attribute :client_token, :aliases => 'clientToken'
attribute :dns_name, :aliases => 'dnsName'
attribute :groups
attribute :flavor_id, :aliases => 'instanceType'
@ -34,7 +33,7 @@ module Fog
attribute :subnet_id, :aliases => 'subnetId'
attribute :user_data
attr_accessor :password, :username
attr_accessor :client_token, :password, :username
attr_writer :private_key, :private_key_path, :public_key, :public_key_path
def initialize(attributes={})

View file

@ -23,7 +23,6 @@ describe 'Fog::AWS::Compute::Server' do
it "should remap attributes from parser" do
server = @servers.new({
'amiLaunchIndex' => 'ami_launch_index',
'clientToken' => 'client_token',
'dnsName' => 'dns_name',
'imageId' => 'image_id',
'instanceId' => 'instance_id',
@ -36,7 +35,6 @@ describe 'Fog::AWS::Compute::Server' do
'ramdiskId' => 'ramdisk_id'
})
server.ami_launch_index.should == 'ami_launch_index'
server.client_token.should == 'client_token'
server.dns_name.should == 'dns_name'
server.image_id.should == 'image_id'
server.id.should == 'instance_id'