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

services.ec2: Migrate fedimg to support to longer resource ids #137

Conversation

sayanchowdhury
Copy link
Contributor

Signed-off-by: Sayan Chowdhury sayan.chowdhury2012@gmail.com

Copy link
Contributor

@cverna cverna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for me, with just a comment but not blocking the merge

@@ -179,7 +179,7 @@ def _create_volume(self, source):
_log.debug('Initiate task to upload the image via S3. '
'Fetching task id...')

task_id = get_item_from_regex(output, regex='\s(import-vol-\w{8})')
task_id = get_item_from_regex(output, regex='\s(import-vol-\w{17})')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to maybe add a test for this function.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it is failing flake8 too.

fedimg/services/ec2/ec2imguploader.py:182:80: E501 line too long (80 > 79 characters)
            task_id = get_item_from_regex(output, regex='\s(import-vol-\w{17})')```

@sayanchowdhury sayanchowdhury force-pushed the migrate-to-longer-resource-ids branch from 50a6849 to 8701836 Compare May 28, 2018 10:44
Signed-off-by: Sayan Chowdhury <sayan.chowdhury2012@gmail.com>
@sayanchowdhury sayanchowdhury force-pushed the migrate-to-longer-resource-ids branch from 8701836 to 7d9b74d Compare May 28, 2018 13:14
@sayanchowdhury sayanchowdhury merged commit 42736cd into fedora-infra:develop May 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants