The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/5039
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) === Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From 0bf73c15cc933213fd7d1aedd536966f175a8c82 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <thomas.h...@canonical.com> Date: Wed, 12 Sep 2018 15:30:28 +0200 Subject: [PATCH] api: Identify snapshots when listed Signed-off-by: Thomas Hipp <thomas.h...@canonical.com> --- lxd/storage_volumes.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/storage_volumes.go b/lxd/storage_volumes.go index c849ce6618..2dad1fd0d0 100644 --- a/lxd/storage_volumes.go +++ b/lxd/storage_volumes.go @@ -84,6 +84,10 @@ func storagePoolVolumesGet(d *Daemon, r *http.Request) Response { return InternalError(err) } volume.UsedBy = volumeUsedBy + + if strings.Contains(volume.Name, "/") { + volume.Type = fmt.Sprintf("%s (snapshot)", volume.Type) + } } }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel