Merge "Replaces yaml.load() with yaml.safe_load()"

This commit is contained in:
Zuul 2018-03-02 11:04:16 +00:00 committed by Gerrit Code Review
commit ba600883b4
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ class Config(object):
self.printSample() self.printSample()
sys.exit(1) sys.exit(1)
self.config = yaml.load(open(self.path)) self.config = yaml.safe_load(open(self.path))
schema = ConfigSchema().getSchema(self.config) schema = ConfigSchema().getSchema(self.config)
schema(self.config) schema(self.config)
server = self.getServer(server) server = self.getServer(server)