From edbac1f14ee56fdd06783b84b6be0ebf8ec76183 Mon Sep 17 00:00:00 2001 From: Tim Miller Date: Thu, 25 Jul 2013 14:54:21 -0700 Subject: [PATCH] Fix 'timeout' parameter of glance-image module. The timeout parameter of glance-image was not being parsed into a numeric type, causing the following error when specifying timeout: msg: Error in creating image: unsupported operand type(s) for +: 'float' and 'str' --- library/cloud/glance_image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/glance_image b/library/cloud/glance_image index 3ef823d1ae3..1060ffacbaa 100644 --- a/library/cloud/glance_image +++ b/library/cloud/glance_image @@ -176,7 +176,7 @@ def _glance_image_create(module, params, client): 'copy_from': params.get('copy_from'), } try: - timeout = params.get('timeout') + timeout = float(params.get('timeout')) expire = time.time() + timeout image = client.images.create(**kwargs) if not params['copy_from']: