-
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: 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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
35 additions
and
30 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,5 @@ | ||
--- | ||
bugfixes: | ||
- "``subprocess_util`` - escape brackets in the subprocess output before | ||
logging output with twiggy | ||
- "``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