Tim Landscheidt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/202363

Change subject: Tools: Let bigbrother ignore empty lines and comments
......................................................................

Tools: Let bigbrother ignore empty lines and comments

Bug: T94990
Change-Id: I5ba8725d691137f915ba240f6537b880e4a6a6ea
---
M modules/toollabs/files/bigbrother
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/63/202363/1

diff --git a/modules/toollabs/files/bigbrother 
b/modules/toollabs/files/bigbrother
index 4a82cc4..29da8b7 100755
--- a/modules/toollabs/files/bigbrother
+++ b/modules/toollabs/files/bigbrother
@@ -78,7 +78,9 @@
             $line++;
             my $expect;
             my $start;
-            if(m/^webservice(:?\s+-([a-z]+))?$/) {
+            if (m/^\s*(?:#.*)?$/) {   # Ignore empty lines and comments.
+                next;
+            } elsif(m/^webservice(:?\s+-([a-z]+))?$/) {
                 my $name = $2 // "lighttpd";
                 unless($username =~ m/^tools\.(.*)$/) {
                     ulog $username, 'error', "$rcfile:$line: unable to figure 
out webgrid name! (not possible)";

-- 
To view, visit https://gerrit.wikimedia.org/r/202363
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5ba8725d691137f915ba240f6537b880e4a6a6ea
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Tim Landscheidt <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to