diff --git a/kubeshell/kubeshell.py b/kubeshell/kubeshell.py index 7bbc8f2..f631406 100644 --- a/kubeshell/kubeshell.py +++ b/kubeshell/kubeshell.py @@ -39,7 +39,7 @@ def parse_kubeconfig(): return ("", "", "") with open(os.path.expanduser(kubeconfig_filepath), "r") as fd: - docs = yaml.load_all(fd) + docs = yaml.load_all(fd, Loader=yaml.SafeLoader) for doc in docs: current_context = doc.get("current-context", "") contexts = doc.get("contexts")