fix(pep8): makes python script pep8 compliant
Fixes horizon python script so it is pep8 compliant. Change-Id: I704d3e83b0ee62173207559379e22d04aa96fcbf Signed-off-by: Tin <tin@irrational.io>
This commit is contained in:
parent
da05d8d619
commit
dd55414d05
@ -14,7 +14,7 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Horizon
|
||||
name: horizon
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
home: https://docs.openstack.org/horizon/latest/
|
||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Horizon/OpenStack_Project_Horizon_vertical.png
|
||||
sources:
|
||||
|
@ -17,6 +17,7 @@ limitations under the License.
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
from selenium import webdriver
|
||||
from selenium.webdriver.common.by import By
|
||||
from selenium.webdriver.support.ui import WebDriverWait
|
||||
@ -37,6 +38,7 @@ formatter = logging.Formatter(
|
||||
ch.setFormatter(formatter)
|
||||
logger.addHandler(ch)
|
||||
|
||||
|
||||
def get_variable(env_var):
|
||||
if env_var in os.environ:
|
||||
logger.info('Found "{}"'.format(env_var))
|
||||
@ -45,6 +47,7 @@ def get_variable(env_var):
|
||||
logger.critical('Variable "{}" is not defined!'.format(env_var))
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
keystone_user = get_variable('OS_USERNAME')
|
||||
keystone_password = get_variable('OS_PASSWORD')
|
||||
horizon_uri = get_variable('HORIZON_URI')
|
||||
|
@ -10,4 +10,5 @@ horizon:
|
||||
- 0.1.7 Update glance default policy values
|
||||
- 0.1.8 Implement "CSRF_COOKIE_HTTPONLY" option support in horizon
|
||||
- 0.2.0 Remove support for releases before T
|
||||
- 0.2.1 Make python script PEP8 compliant
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user