Skip to content

Commit

Permalink
Merge pull request #121 from daFritz84/fix-waiting-for-ip
Browse files Browse the repository at this point in the history
fix for waiting indefinitely for an ip when deploying on ovirt 4.4
  • Loading branch information
myoung34 committed Jan 5, 2021
2 parents f520dd7 + b8314fb commit 23b130f
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 23b130f

Please sign in to comment.