Skip to content

Commit

Permalink
Prevent empty log lines upon Rexfile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed Jan 22, 2023
1 parent fbd633f commit 644cb6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Revision history for Rex

[BUG FIXES]
- Detect invalid hostgroup expressions
- Prevent empty log lines upon Rexfile warnings

[DOCUMENTATION]
- Clarify optional arguments of file commands
Expand Down
1 change: 1 addition & 0 deletions lib/Rex/CLI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,7 @@ sub load_rexfile {
if (@warnings) {
Rex::Logger::info( "You have some code warnings:", 'warn' );
for (@warnings) {
chomp;

# remove /loader/.../ prefix before filename
s{/loader/[^/]+/}{}sxm;
Expand Down

0 comments on commit 644cb6d

Please sign in to comment.