Skip to content

Commit 6566cc5

Browse files
Fix usage of yaml.load in getkubeconfig plugin (#792)
1 parent 67b0935 commit 6566cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linodecli/plugins/get-kubeconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _get_kubeconfig_by_label(cluster_label, client):
130130
# Loads a yaml file
131131
def _load_config(filepath):
132132
with open(filepath, "r", encoding="utf-8") as file_descriptor:
133-
data = yaml.load(file_descriptor, Loader=yaml.Loader)
133+
data = yaml.safe_load(file_descriptor)
134134

135135
if not data:
136136
print(f"Could not load file at {filepath}", file=sys.stderr)

0 commit comments

Comments
 (0)