Sha256: b5445e9d9def83e61817126d38641cd83203b803ca24d919a769f6546f1a35d0
Contents?: true
Size: 697 Bytes
Versions: 17
Compression:
Stored size: 697 Bytes
Contents
require 'fog/compute/models/server' require 'fog/openstack/models/compute/metadata' module Fog module Compute class OpenStack class Host < Fog::Model attribute :host_name attribute :service_name attribute :details def initialize(attributes) attributes["service_name"] = attributes.delete "service" # Old 'connection' is renamed as service and should be used instead prepare_service_value(attributes) super end def details service.get_host_details(self.host_name).body['host'] rescue Fog::Compute::OpenStack::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems