Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provision directory with dangling symbolic link throws exception #11549

Open
krystian-wojtas opened this issue Apr 25, 2020 · 0 comments
Open

Comments

@krystian-wojtas
Copy link

Vagrant version

% vagrant --version
Vagrant 2.2.7

Host operating system

% lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic

Guest operating system

vagrant@ubuntu-eoan:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"

Vagrantfile

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/eoan64"
  config.vm.provision "file", source: "keys/", destination: "/home/vagrant/"
end

Debug output

https://gist.github.com/krystian-wojtas/8265ea032a5265df14261da8c61049d0

Expected behavior

Maybe it should at least print some nice error message?

Actual behavior

Throws exception.

Steps to reproduce

  1. mkdir keys
  2. ln -s does-not-exists keys/dangling-symlink
  3. vagrant up
@krystian-wojtas krystian-wojtas changed the title Provision directory with dangling link fails Provision directory with dangling link throws exception Apr 25, 2020
@krystian-wojtas krystian-wojtas changed the title Provision directory with dangling link throws exception Provision directory with dangling symbolic link throws exception Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants