From b1bd250ca84f1a5deaf16d53d8ecce050a898633 Mon Sep 17 00:00:00 2001 From: Sayan Chowdhury Date: Fri, 13 Apr 2018 03:28:14 +0530 Subject: [PATCH] fedimg: Add the patch to send the upload messages Signed-off-by: Sayan Chowdhury --- files/hotfix/fedimg/ec2imgpublisher.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/files/hotfix/fedimg/ec2imgpublisher.py b/files/hotfix/fedimg/ec2imgpublisher.py index 5a4581448f..f9053a0db5 100644 --- a/files/hotfix/fedimg/ec2imgpublisher.py +++ b/files/hotfix/fedimg/ec2imgpublisher.py @@ -192,6 +192,22 @@ class EC2ImagePublisher(EC2Base): ) ) + fedimg.messenger.notify( + topic='image.upload', + msg=dict( + image_name=image.name, + destination=self.region, + service=self.service, + status='completed', + compose=self.compose_id, + extra=dict( + id=image.id, + virt_type=virt_type, + vol_type=volume_type + ) + ) + ) + published_images.append({ 'image_id': image.id, 'is_image_public': is_image_public,