kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davidart...@apache.org
Subject [kafka] branch 2.5 updated: MINOR: Modify release.py prompt to only accept y/n
Date Fri, 28 Feb 2020 19:46:13 GMT
This is an automated email from the ASF dual-hosted git repository.

davidarthur pushed a commit to branch 2.5
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.5 by this push:
     new 1b98aee  MINOR: Modify release.py prompt to only accept y/n
1b98aee is described below

commit 1b98aee9dcbba7fa61b3497f9e563051a01fa2ff
Author: David Arthur <mumrah@gmail.com>
AuthorDate: Fri Feb 28 14:29:01 2020 -0500

    MINOR: Modify release.py prompt to only accept y/n
---
 release.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/release.py b/release.py
index 376d45f..f5cb59b 100755
--- a/release.py
+++ b/release.py
@@ -162,6 +162,8 @@ def regexReplace(path, pattern, replacement):
 
 def user_ok(msg):
     ok = raw_input(msg)
+    while ok.strip() not in ('y', 'n'):
+        ok = raw_input("Please enter either 'y' or 'n': ")
     return ok.strip().lower() == 'y'
 
 def sftp_mkdir(dir):


Mime
View raw message