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 <[email protected]>
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
<[email protected]>')
- 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
['"[email protected]" <[email protected]>'].