From 6ef9a5c95d60f05fac136d4ccf5eb7359977eab9 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 4 Oct 2021 08:53:25 -0400 Subject: [PATCH] Use safe_load to avoid warnings - credit to @clairmont32 --- salt/common/tools/sbin/so-firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-firewall b/salt/common/tools/sbin/so-firewall index 9772305fe..9c16ffb15 100755 --- a/salt/common/tools/sbin/so-firewall +++ b/salt/common/tools/sbin/so-firewall @@ -71,7 +71,7 @@ def checkApplyOption(options): def loadYaml(filename): file = open(filename, "r") - return yaml.load(file.read()) + return yaml.safe_load(file.read()) def writeYaml(filename, content): file = open(filename, "w")