Fix py3 raw_imput usage
Change-Id: Ib6fe26170c8260a366e2e8678842ab5cb5be14e5
This commit is contained in:
parent
50f3f5802a
commit
e315e0d3e8
|
@ -20,6 +20,7 @@ import yaml
|
|||
|
||||
import kolla_cli.i18n as u
|
||||
|
||||
from builtins import input
|
||||
from kolla_cli.api.client import ClientApi
|
||||
from kolla_cli.api.exceptions import ClientException
|
||||
from kolla_cli.commands.exceptions import CommandError
|
||||
|
@ -124,9 +125,9 @@ class HostDestroy(Command):
|
|||
def _is_ok_to_delete_data(self):
|
||||
question = ('This will delete all containers and data'
|
||||
', are you sure? (y/n)')
|
||||
answer = raw_input(question)
|
||||
answer = input(question)
|
||||
while answer != 'y' and answer != 'n':
|
||||
answer = raw_input(question)
|
||||
answer = input(question)
|
||||
return True if answer == 'y' else False
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue