Commit 422233bc by Michael DeHaan

Merge pull request #3648 from echohead/glance-image-timeout

Fix 'timeout' parameter of glance-image module.
parents 78132909 edbac1f1
...@@ -176,7 +176,7 @@ def _glance_image_create(module, params, client): ...@@ -176,7 +176,7 @@ def _glance_image_create(module, params, client):
'copy_from': params.get('copy_from'), 'copy_from': params.get('copy_from'),
} }
try: try:
timeout = params.get('timeout') timeout = float(params.get('timeout'))
expire = time.time() + timeout expire = time.time() + timeout
image = client.images.create(**kwargs) image = client.images.create(**kwargs)
if not params['copy_from']: if not params['copy_from']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment