[lxc-devel] [lxd/master] lxc/storage: Fix argument count check for delete

stgraber on Github lxc-bot at linuxcontainers.org
Mon Jan 7 20:16:16 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190107/edd8d3f3/attachment-0001.bin>
-------------- next part --------------
From 17c98fd381b402979127a91ce1e4d3fb21ac5aaf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Mon, 7 Jan 2019 21:15:36 +0100
Subject: [PATCH] lxc/storage: Fix argument count check for delete
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #5394

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxc/storage_volume.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lxc/storage_volume.go b/lxc/storage_volume.go
index ce6038b01c..594225d34e 100644
--- a/lxc/storage_volume.go
+++ b/lxc/storage_volume.go
@@ -549,8 +549,7 @@ func (c *cmdStorageVolumeDelete) Command() *cobra.Command {
 
 func (c *cmdStorageVolumeDelete) Run(cmd *cobra.Command, args []string) error {
 	// Sanity checks
-	// Sanity checks
-	exit, err := c.global.CheckArgs(cmd, args, 2, 3)
+	exit, err := c.global.CheckArgs(cmd, args, 2, 2)
 	if exit {
 		return err
 	}


More information about the lxc-devel mailing list