The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/4171

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===

From c950b4a06f525b100d681883e6909fb407a608eb Mon Sep 17 00:00:00 2001
From: David Negreira <[email protected]>
Date: Fri, 12 Jan 2018 22:33:52 +0100
Subject: [PATCH] lxc client: return errArgs on empty pool

Signed-off-by: David Negreira <[email protected]>
---
 lxc/storage.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxc/storage.go b/lxc/storage.go
index 111122ac0..5f294761a 100644
--- a/lxc/storage.go
+++ b/lxc/storage.go
@@ -772,6 +772,10 @@ func (c *storageCmd) doStoragePoolVolumesList(conf 
*config.Config, remote string
                return err
        }
 
+       if pool == "" {
+               return errArgs
+       }
+
        volumes, err := client.GetStoragePoolVolumes(pool)
        if err != nil {
                return err
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to