diff options
author | 2016-08-09 20:47:27 +0200 | |
---|---|---|
committer | 2016-08-09 20:51:31 +0200 | |
commit | 2afd8b1478331f7ba35f6a38ad3e5fe4329044a8 (patch) | |
tree | 30967349eef769196efa4ca7ce0e5e5af247672f /tests/nova_force_down.py | |
parent | 37166ff55dc65ba9b1c2fe308db85ed1d4a6afec (diff) |
Change type of nova_api_version from float to str
Recently functest container had its python requests lib updated to version
2.8.0 and it no longer supports passing in header values of float type.
Change-Id: I31da351d7f5c7c1c3ff5121b7b000f3bab1d76bf
Signed-off-by: Carlos Goncalves <carlos.goncalves@neclab.eu>
Diffstat (limited to 'tests/nova_force_down.py')
-rw-r--r-- | tests/nova_force_down.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/nova_force_down.py b/tests/nova_force_down.py index bb10e9ea..abea5671 100644 --- a/tests/nova_force_down.py +++ b/tests/nova_force_down.py @@ -36,7 +36,7 @@ def force_down(hostname, force_down=True): 'Content-Type': 'application/json', 'Accept': 'application/json', 'X-Auth-Token': keystone.auth_ref['token']['id'], - 'X-OpenStack-Nova-API-Version': 2.11, + 'X-OpenStack-Nova-API-Version': '2.11', } print requests.put(url, data=json.dumps(data), headers=headers) |