lib/process/cloud/process/server.rb in lorj_cloud-0.1.1 vs lib/process/cloud/process/server.rb in lorj_cloud-0.1.2
- old
+ new
@@ -46,11 +46,11 @@
end
def forj_query_server(sCloudObj, sQuery, _hParams)
ssl_error_obj = SSLErrorMgt.new
begin
- controller_query(sCloudObj, sQuery)
+ query_single(sCloudObj, sQuery, config[:search_for])
rescue => e
retry unless ssl_error_obj.error_detected(e.message, e.backtrace, e)
end
end
@@ -91,10 +91,15 @@
def_attribute :status
predefine_data_value :create, :desc => 'Server is creating.'
predefine_data_value :boot, :desc => 'Server is booting.'
predefine_data_value :active, :desc => 'Server is started.'
predefine_data_value :error, :desc => 'Server is in error.'
- def_attribute :private_ip_address
+ predefine_data_value :shutdown, :desc => 'Server is down.'
+ # The private addresses attribute should be composed by
+ # network_name:
+ # - IP addresses
+ # The controller must return at least those structured data.
+ def_attribute :private_ip_addresses
def_attribute :public_ip_address
def_attribute :image_id
def_attribute :key_name
end