From: Yonghee Han Date: Thu, 25 Jan 2018 00:00:54 +0000 (+0900) Subject: Fixed type check error for the condition X-Git-Tag: submit/trunk/20190927.012743~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=918bf1860abb6469ef5434012d02589ad144695a;p=services%2Fjenkins-scripts.git Fixed type check error for the condition Fixed check for contains branch of the submit tag Change-Id: Ibb4c49fd158742aefb9bb2b6c88434e0b16ba45f --- 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')))