diff options
Diffstat (limited to 'heatclient/v1/shell.py')
| -rw-r--r-- | heatclient/v1/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py index a3179b3..27f8c1e 100644 --- a/heatclient/v1/shell.py +++ b/heatclient/v1/shell.py @@ -304,9 +304,9 @@ def do_stack_delete(hc, args): try: if not args.yes and sys.stdin.isatty(): - sys.stdout.write( - _("Are you sure you want to delete this stack(s) [y/N]? ")) - prompt_response = sys.stdin.readline().lower() + prompt_response = six.moves.input( + _("Are you sure you want to delete this stack(s) [y/N]? ") + ).lower() if not prompt_response.startswith('y'): logger.info(_LI( 'User did not confirm stack delete so taking no action.')) |
