Merge "Python 3 compatibility: convert raw_input to input"

This commit is contained in:
Zuul 2018-12-06 09:01:12 +00:00 committed by Gerrit Code Review
commit 70175beeaf

View File

@ -13,6 +13,7 @@ import importlib
import logging
import os
import sys
from six.moves import input
import time
import stacktrain.core.helpers as hf
@ -230,7 +231,7 @@ def main():
if args.target == "basedisk":
print("Basedisk exists: %s" % conf.get_base_disk_name())
print("\tDestroy and recreate? [y/N] ", end='')
ans = raw_input().lower()
ans = input().lower()
if ans == 'y':
logger.info("Deleting existing basedisk.")
start_time = time.time()