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

fixed backups in DigitalOcean

This commit is contained in:
Denis Barishev 2014-11-30 02:32:58 +03:00
parent 418fd8fdc1
commit 8173935b7d
2 changed files with 5 additions and 2 deletions

View file

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

View file

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