Page MenuHomeVyOS Platform

Fix typo in write_file util
Closed, ResolvedPublicBUG

Description

Using the util write_file without a dir path will raise an exception:
FileNotFoundError: [Errno 2] No such file or directory: ''
This is minor bug, but becomes an annoyance if used to write to the local directory without a path prefix, as 'save my-tmp-config' now does after T6007 (not yet backported), looking ahead to T6472.

Fix the simple bug now and backport.

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

jestabro triaged this task as Normal priority.
jestabro created this object in space S1 VyOS Public.
jestabro changed the task status from Open to Backport pending.Aug 16 2024, 3:19 PM
jestabro moved this task from Need Triage to Finished on the VyOS 1.5 Circinus board.
jestabro moved this task from Need Triage to Finished on the VyOS 1.4 Sagitta (1.4.1) board.