summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-08-16 18:14:40 +0000
committerRalph Bean <rbean@redhat.com>2017-08-16 18:14:40 +0000
commit808fe8d707953a047ae702bf10b0f1339d06400d (patch)
tree43ed1d7605f1236436946c1312cb3abfc474c3cc
parent850cac2c8ae876ddf12b51e64dc1c48f0365f9ed (diff)
downloadansible-808fe8d707953a047ae702bf10b0f1339d06400d.tar.gz
ansible-808fe8d707953a047ae702bf10b0f1339d06400d.tar.xz
ansible-808fe8d707953a047ae702bf10b0f1339d06400d.zip
No return outside of a function.
-rw-r--r--roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py b/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
index 11f35f03f..6322e782e 100644
--- a/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
+++ b/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
@@ -41,6 +41,6 @@ if __name__ == '__main__':
topic = sys.argv[-1]
if topic != 'io.pagure.prod.pagure.issue.edit':
# This message wasn't meant for me...
- return
+ sys.exit(0)
fullname, fields, content = sys.argv[-4:-1]
main(fullname, fields, content)