-
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.
subprocess_util: fix formatting for log callbacks (#116)
* subprocess_util: escape brackets in output for twiggy Twiggy attempts to preform `str.format`-style formatting on log entries. Brackets in the output cause Exceptions or other unpredictable results. * subprocess_util: make stdout/stderr log handling DRY * subprocess_util: refactor _escape_brackets logic We can simply pass the value to the logger as a string formatting argument instead of trying to perform naive manual escaping. Suggested-by: Felix Fontein <felix@fontein.de>
- Loading branch information
Showing
3 changed files
with
72 additions
and
19 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
bugfixes: | ||
- "``subprocess_util.log_run`` - use proper string formatting when passing | ||
command output to the logger | ||
(https://github.com/ansible-community/antsibull-core/pull/116)." |
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