[oe-commits] [openembedded-core] 02/02: send-error-report: Fix test for name > 50 chars
git at git.openembedded.org
git at git.openembedded.org
Wed Jul 4 11:19:41 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit a841a4bc843e8315c26f058905610807468e737c
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Jul 4 10:40:46 2018 +0100
send-error-report: Fix test for name > 50 chars
A name > 50 chars causes a 500 internal server error and should be warned
to the user but the code to do so currently doesn't work. Fix the logic.
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/send-error-report | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/send-error-report b/scripts/send-error-report
index 02014ba..8939f5f 100755
--- a/scripts/send-error-report
+++ b/scripts/send-error-report
@@ -88,7 +88,7 @@ def prepare_data(args):
log.error("Name needs to be provided either via "+userfile+" or as an argument (-n).")
sys.exit(1)
- while len(args.name) <= 0 and len(args.name) < 50:
+ while len(args.name) <= 0 or len(args.name) > 50:
print("\nName needs to be given and must not more than 50 characters.")
args.name, args.email = ask_for_contactdetails()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list