mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #1111 from AmedeeBulle/issue-1110
This commit is contained in:
commit
1c39003fc6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user