Switching print statement to use legacy .format() method, in order to maintain backwards-compatibility with pre-3.6 Python versions

This commit is contained in:
Moshe Shitrit 2021-03-21 23:01:35 -04:00
parent 8e4c5ebe4f
commit 9bce8696ff

View File

@ -31,6 +31,6 @@ def load_config(**kwargs):
if "kube_config_path" in kwargs.keys() or os.path.exists(KUBE_CONFIG_DEFAULT_LOCATION):
load_kube_config(**kwargs)
else:
print(f"kube_config_path not provided and default location ({KUBE_CONFIG_DEFAULT_LOCATION}) does not exist. "
"Using inCluster Config. This might not work.")
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)