-
Notifications
You must be signed in to change notification settings - Fork 147
Open
Labels
Milestone
Description
image_name
should actually return a name, not a self-link
fog-google/lib/fog/compute/google/models/server.rb
Lines 182 to 200 in 3741053
def image_name | |
boot_disk = disks.first | |
unless boot_disk.is_a?(Disk) | |
source = boot_disk[:source] | |
match = source.match(%r{/zones/(.*)/disks/(.*)$}) | |
boot_disk = service.disks.get(match[2], match[1]) | |
end | |
boot_disk.source_image.nil? ? nil : boot_disk.source_image | |
end | |
def destroy(async = true) | |
requires :name, :zone | |
data = service.delete_server(name, zone_name) | |
operation = Fog::Compute::Google::Operations | |
.new(:service => service) | |
.get(data.name, data.zone) | |
operation.wait_for { ready? } unless async | |
operation |