Fix raw_input for py3

Replace raw_input with six.input to comply with py3.

Change-Id: I75daa1b9c9a2f185554117f15974ce83640955e7
This commit is contained in:
Vitalii Nogin 2017-09-08 18:00:33 +03:00
parent 11ecb4d16b
commit bfd87d8b28
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
@ -323,7 +324,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':