diff options
author | yuyafei <yu.yafei@zte.com.cn> | 2016-06-24 15:37:43 +0800 |
---|---|---|
committer | yuyafei <yu.yafei@zte.com.cn> | 2016-06-28 00:44:23 +0000 |
commit | add4dc3b085b28f20ce8bd688b80ac3bc429c38f (patch) | |
tree | 58ec00771002b4b7e96ff6a9e1da9bc3ac01caf4 /heat/cmd/manage.py | |
parent | b7d59bbb1bcd32e4b1e7d9fe00890db15cde1b50 (diff) | |
download | heat-add4dc3b085b28f20ce8bd688b80ac3bc429c38f.tar.gz |
Replace raw_input with input to make PY3 compatible
The raw_input() raises NameError: name 'raw_input' is not defined in python3.
This patch fixes it by replacing raw_input with input to make PY3 compatible.
Change-Id: I50aad3161893250dab1d60af4569bb65d7edef5a
Closes-Bug: #1595827
Diffstat (limited to 'heat/cmd/manage.py')
-rw-r--r-- | heat/cmd/manage.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/cmd/manage.py b/heat/cmd/manage.py index 170c1f8c1..1fe5c46a4 100644 --- a/heat/cmd/manage.py +++ b/heat/cmd/manage.py @@ -19,6 +19,7 @@ import sys from oslo_config import cfg from oslo_log import log +from six import moves from heat.common import context from heat.common.i18n import _ @@ -103,7 +104,7 @@ def do_reset_stack_status(): "intended to recover from specific crashes.")) print(_("It is advised to shutdown all Heat engines beforehand.")) print(_("Continue ? [y/N]")) - data = raw_input() + data = moves.input() if not data.lower().startswith('y'): return ctxt = context.get_admin_context() |