Use input() from six instead of raw_input to be compatible with Python3

This commit is contained in:
marmeladema 2019-10-20 23:15:04 +01:00
parent 0ea1af8b34
commit c0a9d39525

View file

@ -13,6 +13,7 @@ import shutil
import subprocess
import six
import six.moves.urllib as urllib
from six.moves import input
from subprocess import PIPE
from zipfile import BadZipfile
@ -254,7 +255,7 @@ def salt(context, force=False):
print('Something went wrong while bootstrapping')
return retcode
proceed = raw_input(
proceed = input(
'Proposed changes are above, proceed with bootstrap? [y/N]: '
)
if proceed.lower() not in ['y', 'yes']: