mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
prune_nfs_exports: create Logger instance.
Fix #1110 Signed-off-by: Philippe Vanhaesendonck <philippe.vanhaesendonck@e-bulles.be>
This commit is contained in:
parent
d75c9ffda3
commit
4472654ba0
@ -8,15 +8,16 @@ module VagrantPlugins
|
|||||||
include VagrantPlugins::ProviderLibvirt::Util::Nfs
|
include VagrantPlugins::ProviderLibvirt::Util::Nfs
|
||||||
|
|
||||||
def initialize(app, _env)
|
def initialize(app, _env)
|
||||||
|
@logger = Log4r::Logger.new('vagrant_libvirt::action::prune_nfs_exports')
|
||||||
@app = app
|
@app = app
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(env)
|
def call(env)
|
||||||
@machine = env[:machine]
|
@machine = env[:machine]
|
||||||
|
|
||||||
if using_nfs?
|
if using_nfs?
|
||||||
@logger.info('Using NFS, prunning NFS settings from host')
|
@logger.info('Using NFS, prunning NFS settings from host')
|
||||||
if env[:host]
|
if env[:host]
|
||||||
uuid = env[:machine].id
|
uuid = env[:machine].id
|
||||||
# get all uuids
|
# get all uuids
|
||||||
uuids = env[:machine].provider.driver.connection.servers.all.map(&:id)
|
uuids = env[:machine].provider.driver.connection.servers.all.map(&:id)
|
||||||
|
Loading…
Reference in New Issue
Block a user