sunzi
sunzi copied to clipboard
Delete unexpected `end`
Hi @kenn, I found a small syntax error in the Vagrantfile example. Inner end shouldn't be there.
ref: Inline Scripts
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.provision "shell",
inline: "sudo echo 'root:vagrant' | /usr/sbin/chpasswd"
end
end
$ vagrant up
Vagrant failed to initialize at a very early stage:
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
/Users/kyanny/workspaces/tmp-sunzi/Vagrantfile:9: syntax error, unexpected `end', expecting end-of-input
CI failed due to the thor version dependency. https://github.com/kenn/sunzi/pull/46 fixes it. This branch needs to be rebased once https://github.com/kenn/sunzi/pull/46 has been merged.