[lxc-devel] [lxd/master] lxd/cluster: Changing "no heartbeat" language in membership.go

arossbell on Github lxc-bot at linuxcontainers.org
Mon Sep 28 20:18:56 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 711 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200928/95ffc679/attachment.bin>
-------------- next part --------------
From 42164f6dce4c5ee8da0c886257ebc131e97d28f9 Mon Sep 17 00:00:00 2001
From: Adam R Bell <a_0x07 at protonmail.ch>
Date: Mon, 14 Sep 2020 17:28:59 -0600
Subject: [PATCH] lxd/cluster: Changing "no heartbeat" language in
 membership.go "no heartbeat since <countup>" changed to "no heartbeat for
 <countup>"

Signed-off-by: Adam Bell <adam.bell at canonical.com>
---
 lxd/cluster/membership.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/cluster/membership.go b/lxd/cluster/membership.go
index 66716ff68b..c0618b7244 100644
--- a/lxd/cluster/membership.go
+++ b/lxd/cluster/membership.go
@@ -977,7 +977,7 @@ func List(state *state.State, gateway *Gateway) ([]api.ClusterMember, error) {
 		if node.IsOffline(offlineThreshold) {
 			result[i].Status = "Offline"
 			result[i].Message = fmt.Sprintf(
-				"no heartbeat since %s", now.Sub(node.Heartbeat))
+				"no heartbeat for %s", now.Sub(node.Heartbeat))
 		} else {
 			result[i].Status = "Online"
 			result[i].Message = "fully operational"


More information about the lxc-devel mailing list