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'
This commit is contained in:
parent
2da5dc7886
commit
d56518d9ac
1 changed files with 1 additions and 1 deletions
|
@ -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']:
|
||||||
|
|
Loading…
Reference in a new issue