Merge pull request #1111 from AmedeeBulle/issue-1110

This commit is contained in:
Darragh Bailey 2020-05-12 09:34:21 +01:00 committed by GitHub
commit 1c39003fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)