From 17c7a56c5f68004f822cfbcaaf7670d6ee7bb927 Mon Sep 17 00:00:00 2001 From: Mattia Rombi Date: Tue, 27 Aug 2024 00:29:59 +0200 Subject: [PATCH] Fixed message when mounting nfs folders Solve error: undefined local variable or method `opts' --- plugins/synced_folders/nfs/synced_folder.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/synced_folders/nfs/synced_folder.rb b/plugins/synced_folders/nfs/synced_folder.rb index 4d4d0a686a0..44efcf37a46 100644 --- a/plugins/synced_folders/nfs/synced_folder.rb +++ b/plugins/synced_folders/nfs/synced_folder.rb @@ -103,12 +103,12 @@ def enable(machine, folders, nfsopts) mount_folders = {} folders.each do |id, opts| mount_folders[id] = opts.dup if opts[:guestpath] - end - machine.ui.detail(I18n.t("vagrant.actions.vm.nfs.mounting_entry", - guestpath: opts[:guestpath], - hostpath: opts[:hostpath] - )) + machine.ui.detail(I18n.t("vagrant.actions.vm.nfs.mounting_entry", + guestpath: opts[:guestpath], + hostpath: opts[:hostpath] + )) + end # Mount them! if machine.guest.capability?(:nfs_pre)