mirror of https://github.com/docker/compose.git
Use yaml.safe_load instead of yaml.load
http://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML Signed-off-by: Richard Morrison <richard@rmorrison.net>
This commit is contained in:
parent
2924b9997a
commit
251aa7efb6
|
@ -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