Skip to content

Commit 85cd567

Browse files
author
Phil Dier
committed
fixes PyYAML 5.1 deprecation warning
1 parent 8c50211 commit 85cd567

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terrafile/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_terrafile_path(path):
5858
def read_terrafile(path):
5959
try:
6060
with open(path) as open_file:
61-
terrafile = yaml.load(open_file)
61+
terrafile = yaml.load(open_file, Loader=yaml.FullLoader)
6262
if not terrafile:
6363
raise ValueError('{} is empty'.format(path))
6464
except IOError as error:

0 commit comments

Comments
 (0)