2
現在、私は迷惑メールボックスをプロビジョニングしており、Pythonスクリプトを実行しています。バグボックスはPythonを実行して待ちます
config.vm.provision :shell, :inline => "python first.py", :privileged => false
さて、これは動作し、それが発火するが、Pythonスクリプト自体に、私は、Pythonスクリプトを通じて raw_input
を求めています。しかし、流入物を供給するときは、入力は単にスキップされます。
==> default: Checking if box 'box' is up to date...
==> default: Running provisioner: shell...
default: Running: inline script
==> default: Do you want to download the database? [Y/n] Please respond with 'yes' or 'no' (or 'y' or 'n').
==> default: Do you want to download the database? [Y/n]
==> default: Traceback (most recent call last):
==> default: File "first.py", line 110, in <module>
なぜこれが起こっているのか、どのように防止し、応答を待つことができるのか誰にも分かりません。