Skip to content

Commit

Permalink
feat: nicer message when mounting nfs folders
Browse files Browse the repository at this point in the history
  • Loading branch information
ALameLlama committed Apr 22, 2024
1 parent d8fdc50 commit b26482d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/synced_folders/nfs/synced_folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ def enable(machine, folders, nfsopts)
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]
))

# Mount them!
if machine.guest.capability?(:nfs_pre)
machine.guest.capability(:nfs_pre)
Expand Down
1 change: 1 addition & 0 deletions templates/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2661,6 +2661,7 @@ en:
exporting: Exporting NFS shared folders...
installing: "Installing NFS client..."
mounting: Mounting NFS shared folders...
mounting_entry: "%{guestpath} => %{hostpath}"
v4_with_udp_warning: |-
WARNING: Invalid NFS settings detected!
Expand Down

0 comments on commit b26482d

Please sign in to comment.