Method: Beaker::OpenStack#get_ip

Defined in:
lib/beaker/hypervisor/openstack.rb

#get_ipObject



174
175
176
177
178
179
180
181
# File 'lib/beaker/hypervisor/openstack.rb', line 174

def get_ip
  ip = @compute_client.addresses.find { |ip| ip.instance_id.nil? }
  if ip.nil?
    @logger.debug "Creating IP"
    ip = @compute_client.addresses.create
  end
  ip
end