Skip to content

Commit

Permalink
fix PyYAML loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal-Danieli committed Dec 31, 2024
1 parent c4c558e commit 2cc8a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/item_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def update_functions_yaml(root_directory: str,
if (inner_dir / item_yaml).exists():
path = str(inner_dir)+"/"+item_yaml
stream = open(path, 'r')
data = yaml.load(stream)
data = yaml.load(stream=stream, Loader=yaml.FullLoader)
if version:
data['version'] = version
if mlrun_version:
Expand Down
2 changes: 1 addition & 1 deletion cli/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ def clean_pipenv(directory: str):
# load item yaml
def load_item(path):
with open(path, 'r') as stream:
data = yaml.load(stream)
data = yaml.load(stream=stream, Loader=yaml.FullLoader)
return data


Expand Down

0 comments on commit 2cc8a95

Please sign in to comment.