From 4472654ba07f01bc116fb62cedc5bbc4a793ec73 Mon Sep 17 00:00:00 2001 From: Philippe Vanhaesendonck Date: Tue, 12 May 2020 08:33:39 +0200 Subject: [PATCH] prune_nfs_exports: create Logger instance. Fix #1110 Signed-off-by: Philippe Vanhaesendonck --- lib/vagrant-libvirt/action/prune_nfs_exports.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/vagrant-libvirt/action/prune_nfs_exports.rb b/lib/vagrant-libvirt/action/prune_nfs_exports.rb index a52b6d6..3fdca4b 100644 --- a/lib/vagrant-libvirt/action/prune_nfs_exports.rb +++ b/lib/vagrant-libvirt/action/prune_nfs_exports.rb @@ -8,15 +8,16 @@ module VagrantPlugins include VagrantPlugins::ProviderLibvirt::Util::Nfs def initialize(app, _env) + @logger = Log4r::Logger.new('vagrant_libvirt::action::prune_nfs_exports') @app = app end def call(env) - @machine = env[:machine] + @machine = env[:machine] - if using_nfs? + if using_nfs? @logger.info('Using NFS, prunning NFS settings from host') - if env[:host] + if env[:host] uuid = env[:machine].id # get all uuids uuids = env[:machine].provider.driver.connection.servers.all.map(&:id)