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

Commit

Permalink
Merge pull request #92 from sayanchowdhury/hotfix/include-image-url-i…
Browse files Browse the repository at this point in the history
…n-fedmsg

fedimg: Include the image_url in fedmsg messages
  • Loading branch information
sayanchowdhury authored Apr 13, 2018
2 parents 74c4ffd + e21f70d commit 8c2f793
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fedimg/services/ec2/ec2imgpublisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def __init__(self, **kwargs):
'compose_id': None,
'image_id': None,
'image_name': 'Fedora-AMI',
'image_url': None,
'image_description': 'Fedora AMI Description',
'service': 'EC2',
'region': None,
Expand Down Expand Up @@ -181,6 +182,7 @@ def publish_images(self, region_image_mapping=None):
topic='image.publish',
msg=dict(
image_name=image.name,
image_url=self.image_url,
destination=self.region,
service=self.service,
compose=self.compose_id,
Expand All @@ -196,6 +198,7 @@ def publish_images(self, region_image_mapping=None):
topic='image.upload',
msg=dict(
image_name=image.name,
image_url=self.image_url,
destination=self.region,
service=self.service,
status='completed',
Expand Down
1 change: 1 addition & 0 deletions fedimg/services/ec2/ec2initiate.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def main(image_urls, access_id, secret_key, regions, volume_types=None,
access_key=access_id,
secret_key=secret_key,
push_notifications=push_notifications,
image_url=image_url
)

combinations = itertools_product(
Expand Down

0 comments on commit 8c2f793

Please sign in to comment.