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

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: Stéphane Graber <stgra...@ubuntu.com>
From f9904fa3ef8916f351cf0fa76df1d3238c2c58cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com>
Date: Thu, 31 Oct 2019 23:39:49 +0100
Subject: [PATCH] lxd/storage: Use correct operation type
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 lxd/storage_volumes_snapshot.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/storage_volumes_snapshot.go b/lxd/storage_volumes_snapshot.go
index 16794ab836..7e21741a34 100644
--- a/lxd/storage_volumes_snapshot.go
+++ b/lxd/storage_volumes_snapshot.go
@@ -473,7 +473,7 @@ func storagePoolVolumeSnapshotTypePut(d *Daemon, r 
*http.Request) response.Respo
        resources := map[string][]string{}
        resources["storage_volume_snapshots"] = []string{volumeName}
 
-       op, err := operations.OperationCreate(d.State(), "", 
operations.OperationClassTask, db.OperationSnapshotUpdate, resources, nil, do, 
nil, nil)
+       op, err := operations.OperationCreate(d.State(), "", 
operations.OperationClassTask, db.OperationVolumeSnapshotUpdate, resources, 
nil, do, nil, nil)
        if err != nil {
                return response.InternalError(err)
        }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to