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 relative require
Date Wed, 23 Sep 2020 16:20:41 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 3b0fdc9  Use relative require
3b0fdc9 is described below

commit 3b0fdc9b804c032cd494ad26b2352c282162ef0d
Author: Sebb <sebb@apache.org>
AuthorDate: Wed Sep 23 17:20:31 2020 +0100

    Use relative require
---
 www/status/monitors/system.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/status/monitors/system.rb b/www/status/monitors/system.rb
index 60f203e..9699ccd 100644
--- a/www/status/monitors/system.rb
+++ b/www/status/monitors/system.rb
@@ -42,7 +42,7 @@ def Monitor.system(previous_status)
 
   # Are we the active node?
   begin
-    require 'whimsy/asf/status'
+    require_relative '../../../lib/whimsy/asf/status'
     active = Status.active?
     rescue LoadError, StandardError => e
       active = e.inspect


Mime
View raw message