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:
commit
9c836706dc
2 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue