Skip to content

Commit 976d5aa

Browse files
author
Phil Dier
committed
Merge branch 'phildier/fix-yamlloader-deprecation-warning'
2 parents ebd5ba2 + 85cd567 commit 976d5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: terrafile/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def get_module_path(terrafile_path, terrafile):
6565
def read_terrafile(path):
6666
try:
6767
with open(path) as open_file:
68-
terrafile = yaml.load(open_file)
68+
terrafile = yaml.load(open_file, Loader=yaml.FullLoader)
6969
if not terrafile:
7070
raise ValueError('{} is empty'.format(path))
7171
except IOError as error:

0 commit comments

Comments
 (0)