lib/fog/vcloud_director/models/compute/disk.rb in fog-maestrodev-1.15.0.20130927082724 vs lib/fog/vcloud_director/models/compute/disk.rb in fog-maestrodev-1.18.0.20131111203459
- old
+ new
@@ -26,11 +26,11 @@
attributes[:capacity] = new_capacity.to_i
if not_first_set && has_changed
data = Fog::Generators::Compute::VcloudDirector::Disks.new(all_disks)
num_disk = name.scan(/\d+/).first.to_i
data.modify_hard_disk_size(num_disk, new_capacity)
- response = service.put_vm_disks(attributes[:vm].id, data.disks)
+ response = service.put_disks(attributes[:vm].id, data.disks)
service.process_task(response.body)
end
end
def all_disks
@@ -39,10 +39,10 @@
def destroy
num_disk = name.scan(/\d+/).first.to_i
data = Fog::Generators::Compute::VcloudDirector::Disks.new(all_disks)
data.delete_hard_disk(num_disk)
- response = service.put_vm_disks(attributes[:vm].id, data.disks)
+ response = service.put_disks(attributes[:vm].id, data.disks)
service.process_task(response.body)
end
end
end