[lxc-devel] [lxd/master] This condition has already been deal.

qq690388648 on Github lxc-bot at linuxcontainers.org
Wed Feb 8 06:19:18 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 396 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170208/5fd5f921/attachment.bin>
-------------- next part --------------
From dddbf86de09a79ef8d2483c9988649e06ea134b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E5=BA=9A=E6=B3=BD?= <690388648 at qq.com>
Date: Wed, 8 Feb 2017 14:18:33 +0800
Subject: [PATCH] This condition has already been deal.

The condition of 'req.Source.Fingerprint != ""' has already been deal.
Signed-off-by:sungengze
---
 lxd/containers_post.go | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lxd/containers_post.go b/lxd/containers_post.go
index 598cabf..6ca3e8a 100644
--- a/lxd/containers_post.go
+++ b/lxd/containers_post.go
@@ -36,8 +36,6 @@ func createFromImage(d *Daemon, req *api.ContainersPost) Response {
 
 			hash = alias.Target
 		}
-	} else if req.Source.Fingerprint != "" {
-		hash = req.Source.Fingerprint
 	} else if req.Source.Properties != nil {
 		if req.Source.Server != "" {
 			return BadRequest(fmt.Errorf("Property match is only supported for local images"))


More information about the lxc-devel mailing list