Skip to content

Commit

Permalink
updating yaml load to safe load
Browse files Browse the repository at this point in the history
  • Loading branch information
shabazpatel committed Nov 7, 2018
1 parent 571a229 commit 8cefb13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datmo/core/controller/deploy/deploy.py
Expand Up @@ -177,7 +177,7 @@ def model_deploy(self, cluster_name):
if datmo_deploy_config_path:
with open(datmo_deploy_config_path, 'r') as stream:
try:
datmo_deploy = yaml.load(stream)
datmo_deploy = yaml.safe_load(stream)
if datmo_deploy is not None:
files_exclude = datmo_deploy['deploy'][
'files_exclude']
Expand Down
2 changes: 1 addition & 1 deletion datmo/core/controller/deploy/driver/datmo_microservice.py
Expand Up @@ -46,7 +46,7 @@ def validate_deploy(self, home):
if datmo_deploy_config_path:
with open(datmo_deploy_config_path, 'r') as stream:
try:
datmo_deploy = yaml.load(stream)
datmo_deploy = yaml.safe_load(stream)
if datmo_deploy is not None:
worker_path = datmo_deploy['deploy']['celery_services']['worker_path']
config_method_names = datmo_deploy['deploy']['celery_services']['methods']
Expand Down

0 comments on commit 8cefb13

Please sign in to comment.