Commit 636b4916 authored by Daniele Venzano's avatar Daniele Venzano

Fix some more pylint errors and warnings

parent cbd355d6
......@@ -23,7 +23,7 @@ import zoe_lib.state.sql_manager
zoe_lib.config.load_configuration()
print("Warning, this script will delete the database tables for the deployment '{}' before creating new ones".format(config.get_conf().deployment_name))
print("Warning, this script will delete the database tables for the deployment '{}' before creating new ones".format(zoe_lib.config.get_conf().deployment_name))
print("If you are installing Zoe for the first time, you have nothing to worry about")
print("Sleeping 5 seconds before continuing, hit CTRL-C to stop and think.")
......
......@@ -341,7 +341,6 @@ class KubernetesClient:
log.info('created service on Kubernetes cluster')
except Exception as ex:
log.error(ex)
return
def inspect_service(self, name) -> Dict[str, Any]:
"""Get information of a specific service."""
......
......@@ -35,8 +35,8 @@ LOG_FORMAT = '%(asctime)-15s %(levelname)s %(threadName)s->%(name)s: %(message)s
def _check_configuration_sanity():
if not os.path.exists(os.path.join(config.get_conf().workspace_base_path, zoe_lib.config.get_conf().workspace_deployment_path)):
log.error('Workspace base directory does not exist: {}'.format(os.path.join(zoe_lib.config.get_conf().workspace_base_path, config.get_conf().workspace_deployment_path)))
if not os.path.exists(os.path.join(zoe_lib.config.get_conf().workspace_base_path, zoe_lib.config.get_conf().workspace_deployment_path)):
log.error('Workspace base directory does not exist: {}'.format(os.path.join(zoe_lib.config.get_conf().workspace_base_path, zoe_lib.config.get_conf().workspace_deployment_path)))
return 1
return 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment