mirror of https://github.com/docker/compose.git
Merge pull request #303 from mozz100/master
Use yaml.safe_load instead of yaml.load
This commit is contained in:
commit
e1a3fc2536
|
@ -59,7 +59,7 @@ class Command(DocoptCommand):
|
|||
yaml_path = self.yaml_path
|
||||
if yaml_path is None:
|
||||
yaml_path = self.check_yaml_filename()
|
||||
config = yaml.load(open(yaml_path))
|
||||
config = yaml.safe_load(open(yaml_path))
|
||||
except IOError as e:
|
||||
if e.errno == errno.ENOENT:
|
||||
raise errors.FigFileNotFound(os.path.basename(e.filename))
|
||||
|
|
Loading…
Reference in New Issue