From cf2f312fd06debceee9a06afe2eefccbd2649f1e Mon Sep 17 00:00:00 2001 From: Moshe Shitrit Date: Sun, 21 Mar 2021 23:59:43 -0400 Subject: [PATCH] Applied autopep8 properly this time. This should work --- config/__init__.py | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/config/__init__.py b/config/__init__.py index 204819eb8..c7c68777a 100644 --- a/config/__init__.py +++ b/config/__init__.py @@ -15,8 +15,12 @@ import os from .config_exception import ConfigException from .incluster_config import load_incluster_config -from .kube_config import (list_kube_config_contexts, load_kube_config, - load_kube_config_from_dict, new_client_from_config, KUBE_CONFIG_DEFAULT_LOCATION) +from .kube_config import ( + list_kube_config_contexts, + load_kube_config, + load_kube_config_from_dict, + new_client_from_config, + KUBE_CONFIG_DEFAULT_LOCATION) def load_config(**kwargs): @@ -28,9 +32,11 @@ def load_config(**kwargs): :param kwargs: A combination of all possible kwargs that can be passed to either load_kube_config or load_incluster_config functions. """ - if "kube_config_path" in kwargs.keys() or os.path.exists(KUBE_CONFIG_DEFAULT_LOCATION): + if "kube_config_path" in kwargs.keys() or os.path.exists( + KUBE_CONFIG_DEFAULT_LOCATION): load_kube_config(**kwargs) else: - print("kube_config_path not provided and default location ({0}) does not exist. " - "Using inCluster Config. This might not work.".format(KUBE_CONFIG_DEFAULT_LOCATION)) + print( + "kube_config_path not provided and default location ({0}) does not exist. " + "Using inCluster Config. This might not work.".format(KUBE_CONFIG_DEFAULT_LOCATION)) load_incluster_config(**kwargs)