Merge "Fix raw_input for py3"

This commit is contained in:
Jenkins 2017-09-11 17:50:59 +00:00 committed by Gerrit Code Review
commit 785f60cece
1 changed files with 2 additions and 1 deletions

View File

@ -21,6 +21,7 @@ import sys
import elasticsearch
from oslo_config import cfg
from oslo_log import log
import six
from freezer_api import __version__ as FREEZER_API_VERSION
from freezer_api.common import config
@ -315,7 +316,7 @@ class ElasticSearchManager(object):
if CONF.yes:
return CONF.yes
while True:
ans = raw_input(message)
ans = six.input(message)
if ans.lower() == 'y':
return True
elif ans.lower() == 'n':