lib/process/cloud/providers/openstack/openstack.rb in lorj_cloud-0.1.9 vs lib/process/cloud/providers/openstack/openstack.rb in lorj_cloud-0.1.10

- old
+ new

@@ -221,9 +221,17 @@ [:addresses, '{/.*/}', '<%= data["OS-EXT-IPS:type"] == "fixed" %>|addr'] def_attr_mapping :public_ip_address, [:addresses, '{/.*/}', '<%= data["OS-EXT-IPS:type"] == "floating" %>|addr'] + + def_attr_mapping :priv_ip_addresses, + [:addresses, '{/.*/0}', + '<%= data["OS-EXT-IPS:type"] == "fixed" %>|addr'] + def_attr_mapping :pub_ip_addresses, + [:addresses, '{/.*/0}', + '<%= data["OS-EXT-IPS:type"] == "floating" %>|addr'] + def_attr_mapping :image_id, [:image, 'id'] def_attr_mapping :meta_data, :metadata define_obj :router obj_needs_optional