forked from martomi/chiadog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cross-platform implementation (martomi#68)
Made the following changes to fix a Pathlib bug where the log file could not be found in the event of a Windows-run chiadog connecting to a remote Linux harvester: - Renamed `_get_remote_platform()` to `get_host_info()` and made it static. - Moved `get_host_info()` from class initializer to `create_log_consumer_from_config()` - Replaced `Path` with either `PosixPurePath` or `WindowsPurePath` depending on remote host OS info - Added line to `.gitignore` to allow multi-remote testing - Updated `util.py` (code formatter output)
- Loading branch information
1 parent
cd5c2be
commit 5653063
Showing
3 changed files
with
44 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# secrets | ||
config.yaml | ||
config.*.yaml | ||
|
||
# dev files | ||
.idea | ||
|
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