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

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: Free Ekanayaka <free.ekanay...@canonical.com>
From 7c3c6a8c7b4cfb83d1441ee19ac26ec659d59504 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanay...@canonical.com>
Date: Mon, 24 Feb 2020 12:26:11 +0000
Subject: [PATCH] Use project.Config as etag field, without specifiying
 individual keys.

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
---
 lxd/api_project.go | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/lxd/api_project.go b/lxd/api_project.go
index 30633beaed..4d6915bc64 100644
--- a/lxd/api_project.go
+++ b/lxd/api_project.go
@@ -204,8 +204,7 @@ func projectGet(d *Daemon, r *http.Request) 
response.Response {
 
        etag := []interface{}{
                project.Description,
-               project.Config["features.images"],
-               project.Config["features.profiles"],
+               project.Config,
        }
 
        return response.SyncResponseETag(true, project, etag)
@@ -233,8 +232,7 @@ func projectPut(d *Daemon, r *http.Request) 
response.Response {
        // Validate ETag
        etag := []interface{}{
                project.Description,
-               project.Config["features.images"],
-               project.Config["features.profiles"],
+               project.Config,
        }
        err = util.EtagCheck(r, etag)
        if err != nil {
@@ -274,8 +272,7 @@ func projectPatch(d *Daemon, r *http.Request) 
response.Response {
        // Validate ETag
        etag := []interface{}{
                project.Description,
-               project.Config["features.images"],
-               project.Config["features.profiles"],
+               project.Config,
        }
        err = util.EtagCheck(r, etag)
        if err != nil {
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to