diff options
author | ZhijunWei <wzj334965317@outlook.com> | 2018-12-28 23:04:07 +0800 |
---|---|---|
committer | ZhijunWei <wzj334965317@outlook.com> | 2019-01-04 14:46:07 +0800 |
commit | 85e9b58e9b638bc49679d2c7460dd1db7f39f48a (patch) | |
tree | 4edf2d7739d2f5e339a114146a2d606e1473c8aa /novaclient/api_versions.py | |
parent | b13ba0138f6ee2e10ce3b4b95aee37c6cebd1f20 (diff) | |
download | python-novaclient-85e9b58e9b638bc49679d2c7460dd1db7f39f48a.tar.gz |
Update hacking version
1. update hacking version to latest
2. fix the pep8 failed
Change-Id: I484a40fe3cb868d223a807edcd3e20f5e0ebdf4e
Diffstat (limited to 'novaclient/api_versions.py')
-rw-r--r-- | novaclient/api_versions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/novaclient/api_versions.py b/novaclient/api_versions.py index 23176519..5ff52b8f 100644 --- a/novaclient/api_versions.py +++ b/novaclient/api_versions.py @@ -324,11 +324,11 @@ def update_headers(headers, api_version): def check_headers(response, api_version): """Checks that microversion header is in response.""" if api_version.ver_minor > 0: - if (api_version.ver_minor < 27 - and LEGACY_HEADER_NAME not in response.headers): + if (api_version.ver_minor < 27 and + LEGACY_HEADER_NAME not in response.headers): _warn_missing_microversion_header(LEGACY_HEADER_NAME) - elif (api_version.ver_minor >= 27 - and HEADER_NAME not in response.headers): + elif (api_version.ver_minor >= 27 and + HEADER_NAME not in response.headers): _warn_missing_microversion_header(HEADER_NAME) |