lib/process/cloud/providers/hpcloud/compute.rb in lorj_cloud-0.1.1 vs lib/process/cloud/providers/hpcloud/compute.rb in lorj_cloud-0.1.2

- old
+ new

@@ -65,9 +65,14 @@ result << oElem if is_found end result end + def self.get_server_assigned_address(oComputeConnect, id) + addresses = oComputeConnect.addresses.all + addresses.each { |oElem| return oElem if oElem.attributes['id'] == id } + end + def self.server_assign_address(oComputeConnect, server) while server.state != 'ACTIVE' sleep(5) server = oComputeConnect.servers.get(server.id) end