Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Deprecation function(load -> safe_load) #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/integration/canary_test/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,5 @@ def load_config(config, dir=''):
os.path.dirname(os.path.abspath(__file__)) + dir, config
)
with open(config_file, "r") as f:
config = yaml.load(f)
config = yaml.safe_load(f)
return config
2 changes: 1 addition & 1 deletion tests/integration/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ def load_config(config, dir=''):
os.path.dirname(os.path.abspath(__file__)) + dir, config
)
with open(config_file, "r") as f:
config = yaml.load(f)
config = yaml.safe_load(f)
return config
2 changes: 1 addition & 1 deletion tools/deploy/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def load(cfg_file):
"""
with open(cfg_file, 'r') as f:
try:
cfg = yaml.load(f)
cfg = yaml.safe_load(f)
except yaml.YAMLError as ex:
print 'Failed to unmarshal cluster config %s' % cfg_file
raise ex
Expand Down
2 changes: 1 addition & 1 deletion tools/minicluster/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def load_config():
os.path.dirname(os.path.abspath(__file__)), "config.yaml"
)
with open(config_file, "r") as f:
config = yaml.load(f)
config = yaml.safe_load(f)
return config


Expand Down
2 changes: 1 addition & 1 deletion tools/vcluster/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

def load_config(config_file):
with open(config_file, 'r') as f:
config = yaml.load(f)
config = yaml.safe_load(f)
return config


Expand Down