-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gui): Landscape config serialization (#855)
The Landscape ping service doesn't support https by default. Additionally, wslpath can fool wsl-pro-service, when the path passed to the command line is an empty path it outputs the current working directory absolute path. Due systemd, cwd is `/`. ![image](https://github.com/user-attachments/assets/6d8cb161-cd06-48ea-9782-d7e478056fdd) We should have wsl-pro-service checking for empty paths before invoking wslpath for added correctness (users could well assemble a config file by hand having `ssl_public_key = `), but it also makes sense to fix it here, as we're aware of which fields are optional in the UI. But, instead of treating this (or any path) field as special, I'm being more generic, **filtering out any line in the INI configuration output that could have empty values**, i.e., we won't output lines with this shape : `key =`. More test assertions were added validating those assumptions.
- Loading branch information
Showing
4 changed files
with
56 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters