Skip to content

Commit

Permalink
Refactor yaml loading in scribereader.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cuza committed Oct 21, 2024
1 parent e8e3c4d commit fb1e346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tron/utils/scribereader.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_log_namespace(action_run_id: str, paasta_cluster: str) -> str:
for ext in ["yaml", "yml"]:
try:
with open(f"/nail/etc/services/{namespace}/tron-{paasta_cluster}.{ext}") as f:
config = yaml.safe_load(f)
config = yaml.load(f, Loader=yaml.CSafeLoader)
service: Optional[str] = (
config.get(job_name, {}).get("actions", {}).get(action, {}).get("service", None)
)
Expand Down

0 comments on commit fb1e346

Please sign in to comment.