mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Change yaml.load() to safe_load()
This commit is contained in:
parent
9caf675ed1
commit
368ebbeddf
@ -45,7 +45,7 @@ def get_gomod_dependencies(rootdir, components):
|
|||||||
def get_rules_dependencies(rules_file):
|
def get_rules_dependencies(rules_file):
|
||||||
import yaml
|
import yaml
|
||||||
with open(rules_file) as f:
|
with open(rules_file) as f:
|
||||||
data = yaml.load(f)
|
data = yaml.safe_load(f)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user