我想允许将参数附加到config.vm.synced_folder。我希望用户将其他参数附加到此配置中。
到目前为止,我有:
append_params = 'x: false, y: false'
config.vm.synced_folder x['folder'], "/var/www", create: true, type: "nfs", append_params 如果我删除, append_params,它就能正常工作。但使用它时,它会失败,并出现错误:
There is a syntax error in the following Vagrantfile. The syntax error
message is reproduced below for convenience:
D:/x/Vagrantfile:32: syntax error, unexpected '\n', expecting =>如何根据请求将附加参数附加到config.vm.synced_folder
https://stackoverflow.com/questions/44390339
复制相似问题