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

Merge pull request #3304 from dennybaa/master

fixed backups in DigitalOcean
This commit is contained in:
Wesley Beary 2014-12-01 16:04:06 -06:00
commit 9c836706dc
2 changed files with 5 additions and 2 deletions

View file

@ -16,7 +16,7 @@ module Fog
# available nevertheless # available nevertheless
attribute :public_ip_address, :aliases => 'ip_address' attribute :public_ip_address, :aliases => 'ip_address'
attribute :private_ip_address attribute :private_ip_address
attribute :backups_active attribute :backups_active, :aliases => 'backups_enabled'
attribute :created_at attribute :created_at
attr_writer :ssh_keys attr_writer :ssh_keys
@ -125,7 +125,8 @@ module Fog
options[:ssh_key_ids] = @ssh_keys.map(&:id) options[:ssh_key_ids] = @ssh_keys.map(&:id)
end end
options[:private_networking] = !!attributes[:private_networking] options[:private_networking] = private_networking
options[:backups_active] = backups_active
data = service.create_server name, data = service.create_server name,
flavor_id, flavor_id,

View file

@ -24,6 +24,8 @@ module Fog
end end
query_hash[:private_networking] = !!options[:private_networking] query_hash[:private_networking] = !!options[:private_networking]
# backups are enabled using backups_enabled query parameter!
query_hash[:backups_enabled] = !!options[:backups_active]
request( request(
:expects => [200], :expects => [200],