Skip to content

Commit

Permalink
Merge pull request #80 from fedora-infra/errorout
Browse files Browse the repository at this point in the history
Error out if starting the task failed
  • Loading branch information
sayanchowdhury committed Apr 12, 2018
2 parents 45a07a5 + e5df468 commit 3a3fc64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fedimg/services/ec2/ec2imguploader.py
Expand Up @@ -168,6 +168,13 @@ def _create_volume(self, source):
self.availability_zone
])

if retcode != 0:
log.error('Unable to import volume. Out: %s, err: %s, ret: %s',
output,
err,
retcode)
raise Exception('Creating the volume failed')

log.debug('Initiate task to upload the image via S3. '
'Fetching task id...')

Expand Down

0 comments on commit 3a3fc64

Please sign in to comment.