Skip to content

Commit

Permalink
fix for waiting indefinitely for an ip when deploying on ovirt 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Seifried committed Jan 4, 2021
1 parent f520dd7 commit b8314fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-ovirt4/action/wait_till_up.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def call(env)

nics_service = server.nics_service
nics = nics_service.list
ip_addr = nics.collect { |nic_attachment| env[:connection].follow_link(nic_attachment).reported_devices.collect { |dev| dev.ips.collect { |ip| ip.address if ip.version == 'v4' } unless dev.ips.nil? } }.flatten.reject { |ip| ip.nil? }.first rescue nil
ip_addr = nics.collect { |nic_attachment| env[:connection].follow_link(nic_attachment.reported_devices).collect { |dev| dev.ips.collect { |ip| ip.address if ip.version == 'v4' } unless dev.ips.nil? } }.flatten.reject { |ip| ip.nil? }.first rescue nil
unless ip_addr.nil?
env[:ui].info("Got IP: #{ip_addr}")
# Check if SSH-Server is up
Expand Down

0 comments on commit b8314fb

Please sign in to comment.