summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Bean <rbean@redhat.com>2017-08-16 17:57:19 +0000
committerRalph Bean <rbean@redhat.com>2017-08-16 17:57:23 +0000
commit458bb25611ecd52eaca57716268edc0517260010 (patch)
tree9bdfbde9435edbc4d4b9a8b3e9fc43f021d2ad6f
parent8ee7e4d37dce9fce432f2b6f4fcafd46e2b5b9a5 (diff)
downloadansible-458bb25611ecd52eaca57716268edc0517260010.tar.gz
ansible-458bb25611ecd52eaca57716268edc0517260010.tar.xz
ansible-458bb25611ecd52eaca57716268edc0517260010.zip
Make sure the ring fits.
-rw-r--r--roles/bodhi2/backend/files/fedwatch.conf1
-rw-r--r--roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py6
2 files changed, 6 insertions, 1 deletions
diff --git a/roles/bodhi2/backend/files/fedwatch.conf b/roles/bodhi2/backend/files/fedwatch.conf
index a04a3ca91..f9202ae34 100644
--- a/roles/bodhi2/backend/files/fedwatch.conf
+++ b/roles/bodhi2/backend/files/fedwatch.conf
@@ -4,6 +4,7 @@
"msg/project/fullname",
"msg/fields",
"msg/issue/content"
+ "topic",
]
}
}
diff --git a/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py b/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
index e511cfe19..11f35f03f 100644
--- a/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
+++ b/roles/bodhi2/backend/files/koji-sync-fedwatch-glue.py
@@ -38,5 +38,9 @@ def main(fullname, fields, content):
if __name__ == '__main__':
- fullname, fields, content = sys.argv[-3:]
+ topic = sys.argv[-1]
+ if topic != 'io.pagure.prod.pagure.issue.edit':
+ # This message wasn't meant for me...
+ return
+ fullname, fields, content = sys.argv[-4:-1]
main(fullname, fields, content)