lib/fog/volume/openstack/requests/restore_backup.rb in fog-openstack-0.1.31 vs lib/fog/volume/openstack/requests/restore_backup.rb in fog-openstack-0.2.0

- old
+ new

@@ -1,10 +1,10 @@ module Fog module Volume class OpenStack module Real - def restore_backup(backup_id, volume_id) - data = { 'restore' => { 'volume_id' => volume_id } } + def restore_backup(backup_id, volume_id = nil, name = nil) + data = {'restore' => {'volume_id' => volume_id, 'name' => name}} request( :expects => 202, :method => 'POST', :path => "backups/#{backup_id}/restore", :body => Fog::JSON.encode(data)