Fall back to dnsmasq leases file if not able to fetch IP with lxc-attach

Closes GH-118
This commit is contained in:
Fabio Rehm 2013-09-28 03:12:56 -03:00
parent 18bb9482d5
commit 175c40765a
2 changed files with 7 additions and 3 deletions

View file

@ -1,9 +1,10 @@
## [0.6.1](https://github.com/fgrehm/vagrant-lxc/compare/v0.6.0...master) (unreleased)
IMPROVEMENTS:
IMPROVEMENTS:
- New base boxes with support for lxc 1.0+
- Make sure lxc templates are executable prior to `lxc-create` [#128](https://github.com/fgrehm/vagrant-lxc/issues/128)
- Fall back to `dnsmasq` leases file if not able to fetch IP with `lxc-attach` [#118](https://github.com/fgrehm/vagrant-lxc/issues/118)
- Make sure lxc templates are executable prior to `lxc-create` [#128](https://github.com/fgrehm/vagrant-lxc/issues/128)
- New base boxes with support for lxc 1.0+
BUG FIXES:

View file

@ -12,6 +12,9 @@ module Vagrant
def call(env)
env[:machine_ip] ||= assigned_ip(env)
rescue LXC::Errors::ExecuteError
@logger.info 'Unable to fetch IP with `lxc-attach`!'
ensure
@app.call(env)
end