summaryrefslogtreecommitdiff
path: root/heatclient/osc
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-28 09:02:31 +0000
committerGerrit Code Review <review@openstack.org>2017-09-28 09:02:31 +0000
commit082f728d179dc2bba64e9821eaec18f429aa15fd (patch)
treeeeaa2bc69899f8c47ac3874f88e0ec57f13571d2 /heatclient/osc
parentfc3763288c34d1c33db2e31744a6bf4f8c33f330 (diff)
parent4d295fe8b4a8619f9bca09420ab5f9216c737f51 (diff)
downloadpython-heatclient-1.8.2.tar.gz
Merge "Fixing read before prompt bug" into stable/ocataocata-em1.8.2
Diffstat (limited to 'heatclient/osc')
-rw-r--r--heatclient/osc/v1/stack.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/heatclient/osc/v1/stack.py b/heatclient/osc/v1/stack.py
index cf03cec..c92683a 100644
--- a/heatclient/osc/v1/stack.py
+++ b/heatclient/osc/v1/stack.py
@@ -674,9 +674,9 @@ class DeleteStack(command.Command):
try:
if not parsed_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'):
self.log.info(_LI('User did not confirm stack delete so '
'taking no action.'))