]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
Fixing load YAML.
authorFrank Brehm <frank@brehm-online.com>
Fri, 15 Oct 2021 15:32:33 +0000 (17:32 +0200)
committerFrank Brehm <frank@brehm-online.com>
Fri, 15 Oct 2021 15:32:33 +0000 (17:32 +0200)
lib/cr_tf/handler.py

index fa441698de130eceffe2e8c01aeb3d66eafac40f..b38de22cd6df4eb1084f62d5ce13316c79865f64 100644 (file)
@@ -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)