From 87e0948349ef257e23f8625ec3afa6275f2afa99 Mon Sep 17 00:00:00 2001 From: Dean Troyer Date: Fri, 13 Apr 2012 14:30:09 -0500 Subject: [PATCH] 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 --- AUTHORS | 1 + glanceclient/v1/images.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 0bbb45b0..e6d717c9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,3 +1,4 @@ Brian Waldon Jay Pipes Monty Taylor +Dean Troyer diff --git a/glanceclient/v1/images.py b/glanceclient/v1/images.py index 8f47f32f..34f36ade 100644 --- a/glanceclient/v1/images.py +++ b/glanceclient/v1/images.py @@ -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