Skip to content

Commit

Permalink
fix yaml warning
Browse files Browse the repository at this point in the history
  • Loading branch information
piranha committed Apr 12, 2019
1 parent 074d5b2 commit 74edeab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nomad/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def get_yaml(path):
except ImportError:
abort('Please, install PyYAML to parse YAML config.')
fn, path = path.split(':')
obj = yaml.load(open(fn))
obj = yaml.load(open(fn), Loader=yaml.BaseLoader)
path = map(lambda x: int(x) if x.isdigit() else x, path.split('.'))
return reduce(lambda x, y: x[y], path, obj)

Expand Down

0 comments on commit 74edeab

Please sign in to comment.