diff options
author | liyin <liyin11@huawei.com> | 2017-01-10 19:42:20 +0800 |
---|---|---|
committer | Ace Lee <liyin11@huawei.com> | 2017-01-12 08:38:10 +0000 |
commit | 08b12e7a7f0b5971282c371b0d0b9320030f3874 (patch) | |
tree | b16cabd80530ddebe5509d244ed1a6ce0e506001 /utils/infra_setup/heat/common.py | |
parent | 90aee324d326a25ba79b83bf8aceb3bcf3feea9b (diff) |
Modify utils/ code into PEP8 style
JIRA: BOTTLENECK-100
Modify all the code in the utils folder into PEP8 style.
Using more standard way to realize our function.
Change-Id: I965c507390adcb4404d33710f783b22241542890
Signed-off-by: liyin <liyin11@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat/common.py')
-rwxr-xr-x | utils/infra_setup/heat/common.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/infra_setup/heat/common.py b/utils/infra_setup/heat/common.py index 28257ac7..ab0dadf5 100755 --- a/utils/infra_setup/heat/common.py +++ b/utils/infra_setup/heat/common.py @@ -97,6 +97,7 @@ def get_heat_api_version(): return api_version return DEFAULT_HEAT_API_VERSION + def get_nova_api_version(): api_version = os.getenv('OS_COMPUTE_API_VERSION') if api_version is not None: @@ -110,4 +111,4 @@ def get_glance_api_version(): if api_version is not None: log.info("GLANCE_API_VERSION is set in env as '%s'", api_version) return api_version - return DEFAULT_GLANCE_API_VERSION
\ No newline at end of file + return DEFAULT_GLANCE_API_VERSION |