Fixed type check error for the condition 76/168176/1
authorYonghee Han <onstudy@samsung.com>
Thu, 25 Jan 2018 00:00:54 +0000 (09:00 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 25 Jan 2018 00:00:54 +0000 (09:00 +0900)
Fixed check for contains branch of the submit tag

Change-Id: Ibb4c49fd158742aefb9bb2b6c88434e0b16ba45f

job_submit.py

index 9ba4b23..45ddd42 100755 (executable)
@@ -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')))