Skip to content

Commit

Permalink
Revert "Use yaml safe load (#22085)" (#22089)
Browse files Browse the repository at this point in the history
This reverts commit 7f4935b.
  • Loading branch information
potiuk authored Mar 8, 2022
1 parent 564c7ca commit eba9703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/google/cloud/operators/cloud_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def prepare_template(self) -> None:
return
with open(self.build_raw) as file:
if any(self.build_raw.endswith(ext) for ext in ['.yaml', '.yml']):
self.build = yaml.safe_load_all(file.read())
self.build = yaml.load(file.read(), Loader=yaml.FullLoader)
if self.build_raw.endswith('.json'):
self.build = json.loads(file.read())

Expand Down

0 comments on commit eba9703

Please sign in to comment.
  翻译: