From 3429e3931f63b3b1ca6b30a245b653d32aefd325 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Fri, 15 Oct 2021 17:32:33 +0200 Subject: [PATCH] Fixing load YAML. --- lib/cr_tf/handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cr_tf/handler.py b/lib/cr_tf/handler.py index fa44169..b38de22 100644 --- a/lib/cr_tf/handler.py +++ b/lib/cr_tf/handler.py @@ -67,7 +67,7 @@ from .terraform.disk import TerraformDisk from .xlate import XLATOR -__version__ = '3.6.4' +__version__ = '3.6.5' LOG = logging.getLogger(__name__) _ = XLATOR.gettext @@ -1110,7 +1110,7 @@ class CreateTerraformHandler(BaseHandler): try: with open(str(yaml_file), 'r', **open_opts) as fh: - self.yaml_data = yaml.load(fh) + self.yaml_data = yaml.full_load(fh) except yaml.YAMLError as e: msg = _("Error in YAML file {f!r}: {e}.").format( f=str(yaml_file), e=e) -- 2.39.5