whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Use standardises master check
Date Tue, 06 Jun 2017 23:54:44 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new b4d3345  Use standardises master check
b4d3345 is described below

commit b4d3345a95f114d14120b41be43aad1b52cb9648
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Jun 7 00:54:31 2017 +0100

    Use standardises master check
---
 www/roster/public_json_common.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/roster/public_json_common.rb b/www/roster/public_json_common.rb
index 99f4f79..c2ff8a2 100644
--- a/www/roster/public_json_common.rb
+++ b/www/roster/public_json_common.rb
@@ -82,9 +82,9 @@ def public_json_output_file(info, file)
 end
 
 def sendMail(subject, body, to='Notification List <notifications@whimsical.apache.org>')
-  hostname = `hostname`.chomp
-  if not hostname.include? 'vm4'
-    Wunderbar.info "Did not detect vm4 in #{hostname}, not sending mail: #{subject}"
+  require_relative '../whimsy'
+  if not Whimsy.master?
+    Wunderbar.info "Did not detect master status, not sending mail: #{subject}"
     return
   end
   begin

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message