From 918bf1860abb6469ef5434012d02589ad144695a Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Thu, 25 Jan 2018 09:00:54 +0900 Subject: [PATCH] Fixed type check error for the condition Fixed check for contains branch of the submit tag Change-Id: Ibb4c49fd158742aefb9bb2b6c88434e0b16ba45f --- job_submit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/job_submit.py b/job_submit.py index 9ba4b23..45ddd42 100755 --- a/job_submit.py +++ b/job_submit.py @@ -459,7 +459,7 @@ def main(build_type, build, event, sr_count): submitter += ' <%s>' % gerrit_account_email # Enable Github Connection. - if event.get('github_type') is None: + if not event.get('github_type'): mygerrit = Gerrit(event['hostname'], event['username'], \ event['sshport'], int(os.getenv('GERRIT_SILENT_MODE'))) -- 2.7.4