Skip to content

Commit

Permalink
Merge pull request #122 from dvzubarev/develop
Browse files Browse the repository at this point in the history
Support libvirt provider
  • Loading branch information
cgsmith authored Jan 26, 2017
2 parents 1ae2737 + e52e83d commit 408566c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/vagrant-hostsupdater/HostsUpdater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ def getIps
@ui.info '[vagrant-hostsupdater] Skipping adding host entries (config.vm.network hostsupdater: "skip" is set)'
end
end

if @machine.provider_name == :libvirt
ssh_info = @machine.ssh_info
if ssh_info
ips.push(ssh_info[:host])
end
end

return ips
end

Expand Down

0 comments on commit 408566c

Please sign in to comment.