From: Frank Brehm Date: Fri, 15 Oct 2021 15:32:33 +0000 (+0200) Subject: Fixing load YAML. X-Git-Tag: 1.5.7^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=3429e3931f63b3b1ca6b30a245b653d32aefd325;p=pixelpark%2Fcreate-terraform.git Fixing load YAML. --- 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)