#114 Use mdapi-messages schema
Merged 3 years ago by pingou. Opened 3 years ago by ryanlerch.
ryanlerch/mdapi master  into  master

file modified
+2 -2
@@ -47,6 +47,7 @@ 

  

  import requests

  

+ from mdapi_messages.messages import RepoUpdateV1

  from fedora_messaging.api import Message, publish

  from fedora_messaging.exceptions import PublishReturned, ConnectionException

  
@@ -313,8 +314,7 @@ 

      print(f"{name.ljust(padding)} url {url}")

  

      try:

-         msg = Message(

-             topic="mdapi.repo.update",

+         msg = RepoUpdateV1(

              body=dict(

                  name=name,

                  packages=list(packages),

file modified
+1
@@ -1,6 +1,7 @@ 

  aiohttp >= 3.5.4

  aiosqlite

  fedora_messaging

+ mdapi_messages

  # this is a requirement of aiohttp but better safe than sorry

  requests

  uvloop

This uses the new mdapi-messages schema to send the
Repo Update message to Fedora Messaging

Signed-off-by: Ryan Lerch rlerch@redhat.com

Pull-Request has been merged by pingou

3 years ago
Metadata