[pkg-eucalyptus-commits] [euca2ools] 07/41: Warn when bundling an image of size 0

Charles Plessy plessy at alioth.debian.org
Sat Oct 12 03:24:11 UTC 2013


This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch master
in repository euca2ools.

commit 8bbd1bad01efaf9a89ef97a4b3043816940b38c1
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Tue Jul 9 15:26:25 2013 -0700

    Warn when bundling an image of size 0
    
    Fixes TOOLS-333
---
 euca2ools/commands/bundle/bundle.py |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/euca2ools/commands/bundle/bundle.py b/euca2ools/commands/bundle/bundle.py
index 5f41022..4573f27 100644
--- a/euca2ools/commands/bundle/bundle.py
+++ b/euca2ools/commands/bundle/bundle.py
@@ -115,6 +115,10 @@ class Bundle(object):
             msg = "this image is larger than EC2's size limit"
             self.log.warn(msg)
             print >> sys.stderr, 'warning:', msg
+        elif self.image_size == 0:
+            msg = 'this image is an empty file'
+            self.log.warn(msg)
+            print >> sys.stderr, 'warning:', msg
         # pipe for getting the digest from sha1sum
         digest_pipe_out, digest_pipe_in = multiprocessing.Pipe(duplex=False)
         # pipe for tar --> sha1sum

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-eucalyptus/euca2ools.git



More information about the pkg-eucalyptus-commits mailing list