Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server.image_name should actually return a name, not a self-link #390

Open
Temikus opened this issue Jul 14, 2018 · 1 comment
Open

Server.image_name should actually return a name, not a self-link #390

Temikus opened this issue Jul 14, 2018 · 1 comment

Comments

@Temikus
Copy link
Member

Temikus commented Jul 14, 2018

image_name should actually return a name, not a self-link

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

@Temikus Temikus added this to the 2.0 milestone Jul 14, 2018
@Temikus Temikus added this to Backlog in 2.0 Release Oct 7, 2019
@github-actions
Copy link

This issue has been marked inactive and will be closed if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
2.0 Release
  
Backlog
Development

No branches or pull requests

2 participants