fedimg: Add the patch to send the upload messages

Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
This commit is contained in:
Sayan Chowdhury 2018-04-13 03:28:14 +05:30 committed by Sayan Chowdhury
parent c142a1f129
commit b1bd250ca8

View file

@ -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,