Skip to content

Commit fe2f853

Browse files
authored
Use safe YAML loading method safe_load_all
Refer to kubernetes-client#719
1 parent c9ff47f commit fe2f853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kubernetes/utils/create_from_yaml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def create_from_yaml(
5353

5454
k8s_api_all = []
5555
with open(path.abspath(yaml_file)) as f:
56-
yml_document_all = yaml.load_all(f)
56+
yml_document_all = yaml.safe_load_all(f)
5757
# Load all documents from a single YAML file
5858
for yml_document in yml_document_all:
5959
# If it is a list type, will need to iterate its items

0 commit comments

Comments
 (0)