Sha256: ab5ebf5ec4aa3273e595eeca2e7c5de89fb24574920dcbfab45af36f576069ba
Contents?: true
Size: 503 Bytes
Versions: 20
Compression:
Stored size: 503 Bytes
Contents
require 'fog/core/collection' module Fog module OpenStack class Compute class VolumeAttachments < Fog::Collection model Fog::OpenStack::Compute::VolumeAttachment def get(server_id) if server_id puts service.list_volume_attachments(server_id).body load(service.list_volume_attachments(server_id).body['volumeAttachments']) end rescue Fog::OpenStack::Compute::NotFound nil end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems