lib/process/cloud/process/server.rb in lorj_cloud-0.1.9 vs lib/process/cloud/process/server.rb in lorj_cloud-0.1.10
- old
+ new
@@ -101,11 +101,19 @@
predefine_data_value :deleted, :desc => 'Server is deleted.'
# The private addresses attribute should be composed by
# network_name:
# - IP addresses
# The controller must return at least those structured data.
+ # Expect to have Hash with
+ # <network_name> => [<IP>]
def_attribute :private_ip_addresses
def_attribute :public_ip_address
+
+ # This was added to keep comptibility with app
+ # Expect to have Hash with:
+ # <network_name> => <IP>
+ def_attribute :priv_ip_addresses
+ def_attribute :pub_ip_addresses
def_attribute :image_id
def_attribute :key_name
def_attribute :meta_data
end