Fix image-create using pipelines

The return value of ImageManager._get_file_size() is passed on to
the glance server in the create api call.  Returning None causes
the server to reject the request as malformed.

Add dtroyer to AUTHORS

Change-Id: I02c90e2db5fbd1e49d1516550c806f26dae83fb9
This commit is contained in:
Dean Troyer
2012-04-13 14:30:09 -05:00
parent d3185dd3b4
commit 87e0948349
2 changed files with 2 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
Brian Waldon <bcwaldon@gmail.com>
Jay Pipes <jaypipes@gmail.com>
Monty Taylor <mordred@inaugust.com>
Dean Troyer <dtroyer@gmail.com>

View File

@@ -110,7 +110,7 @@ class ImageManager(base.Manager):
# to pipe image data to the client, e.g.
# echo testdata | bin/glance add blah..., or
# that stdin is empty
return None
return 0
else:
raise