Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
Remove duplicate image.upload fedmsg on AMI upload completion
Browse files Browse the repository at this point in the history
We already send image.upload fedmsg notification in
EC2ImageUploader::_register_image() method on an AMI
upload completion. Sending again same notification
on AMI getting published shouldn't be required.

Signed-off-by: Sinny Kumari <[email protected]>
  • Loading branch information
sinnykumari committed Apr 23, 2018
1 parent f92be3f commit a4aa7f4
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions fedimg/services/ec2/ec2imgpublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,23 +213,6 @@ def publish_images(self, region_image_mapping=None):
)
)

fedimg.messenger.notify(
topic='image.upload',
msg=dict(
image_name=get_image_name_from_ami_name_for_fedmsg(image.name),
image_url=self.image_url,
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,
Expand Down

0 comments on commit a4aa7f4

Please sign in to comment.