[lxc-devel] [lxd/master] lxd/cluster: Fix typo in errors

stgraber on Github lxc-bot at linuxcontainers.org
Thu Aug 2 22:27:25 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180802/b4b32431/attachment.bin>
-------------- next part --------------
From 773b275d8802455f2fbded3bda6ae3eec38c7384 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 2 Aug 2018 18:27:01 -0400
Subject: [PATCH] lxd/cluster: Fix typo in errors
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/db/node.go       | 2 +-
 lxd/db/operations.go | 2 +-
 lxd/db/raft.go       | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lxd/db/node.go b/lxd/db/node.go
index 9efe4c12d..356f5beb9 100644
--- a/lxd/db/node.go
+++ b/lxd/db/node.go
@@ -194,7 +194,7 @@ SELECT id, name, address, description, schema, api_extensions, heartbeat FROM no
 	stmt += "ORDER BY id"
 	err := query.SelectObjects(c.tx, dest, stmt, args...)
 	if err != nil {
-		return nil, errors.Wrap(err, "failed to fecth nodes")
+		return nil, errors.Wrap(err, "Failed to fetch nodes")
 	}
 	return nodes, nil
 }
diff --git a/lxd/db/operations.go b/lxd/db/operations.go
index 6e7ccbe6e..01ce13cce 100644
--- a/lxd/db/operations.go
+++ b/lxd/db/operations.go
@@ -87,7 +87,7 @@ SELECT operations.id, uuid, nodes.address FROM operations JOIN nodes ON nodes.id
 	stmt += "ORDER BY operations.id"
 	err := query.SelectObjects(c.tx, dest, stmt, args...)
 	if err != nil {
-		return nil, errors.Wrap(err, "failed to fecth operations")
+		return nil, errors.Wrap(err, "Failed to fetch operations")
 	}
 	return operations, nil
 }
diff --git a/lxd/db/raft.go b/lxd/db/raft.go
index 0eaa8faea..feed808f3 100644
--- a/lxd/db/raft.go
+++ b/lxd/db/raft.go
@@ -24,7 +24,7 @@ func (n *NodeTx) RaftNodes() ([]RaftNode, error) {
 	}
 	err := query.SelectObjects(n.tx, dest, "SELECT id, address FROM raft_nodes ORDER BY id")
 	if err != nil {
-		return nil, errors.Wrap(err, "failed to fecth raft nodes")
+		return nil, errors.Wrap(err, "Failed to fetch raft nodes")
 	}
 	return nodes, nil
 }


More information about the lxc-devel mailing list