File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 4
4
from integration .helpers .client_provider import ClientProvider
5
5
from integration .helpers .resource import generate_suffix , create_bucket , verify_stack_resources
6
6
from integration .helpers .yaml_utils import dump_yaml , load_yaml
7
+ from samtranslator .yaml_helper import yaml_parse
7
8
8
9
try :
9
10
from pathlib import Path
@@ -293,7 +294,7 @@ def _fill_template(self, file_name):
293
294
for key , _ in self .code_key_to_file .items ():
294
295
# We must double the {} to escape them so they will survive a round of unescape
295
296
data = data .replace ("${{{}}}" .format (key ), self .get_code_key_s3_uri (key ))
296
- yaml_doc = yaml . load (data , Loader = yaml . FullLoader )
297
+ yaml_doc = yaml_parse (data )
297
298
298
299
dump_yaml (updated_template_path , yaml_doc )
299
300
Original file line number Diff line number Diff line change 1
1
import yaml
2
2
3
+ from samtranslator .yaml_helper import yaml_parse
4
+
3
5
4
6
def load_yaml (file_path ):
5
7
"""
@@ -17,7 +19,7 @@ def load_yaml(file_path):
17
19
"""
18
20
with open (file_path ) as f :
19
21
data = f .read ()
20
- return yaml . load (data , Loader = yaml . FullLoader )
22
+ return yaml_parse (data )
21
23
22
24
23
25
def dump_yaml (file_path , yaml_doc ):
You can’t perform that action at this time.
0 commit comments