Sha256: a31e2068cb5dcdf045f6aac8e51dcf364ce53fa3494e408bfe3ac138192f25f5
Contents?: true
Size: 716 Bytes
Versions: 23
Compression:
Stored size: 716 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 attribute :zone 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
23 entries across 23 versions & 4 rubygems