# File lib/vagrant-libvirt/action/prepare_nfs_settings.rb, line 16 def call(env) @machine = env[:machine] @app.call(env) if using_nfs? @logger.info('Using NFS, preparing NFS settings by reading host IP and machine IP') env[:nfs_machine_ip] = read_machine_ip(env[:machine]) env[:nfs_host_ip] = read_host_ip(env[:nfs_machine_ip]) @logger.info("host IP: #{env[:nfs_host_ip]} machine IP: #{env[:nfs_machine_ip]}") raise Vagrant::Errors::NFSNoHostonlyNetwork if !env[:nfs_machine_ip] || !env[:nfs_host_ip] end end