[lxc-devel] [lxd/master] lxd/containers: Fix bad function name

stgraber on Github lxc-bot at linuxcontainers.org
Sun Aug 26 23:19:31 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180826/11b05f1b/attachment.bin>
-------------- next part --------------
From 54fe3ac44d281545eb88bfb396f037a4f569b6e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 26 Aug 2018 19:00:29 -0400
Subject: [PATCH] lxd/containers: Fix bad function name
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
 lxd/container_file.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lxd/container_file.go b/lxd/container_file.go
index 80ad1552f2..035f2d8117 100644
--- a/lxd/container_file.go
+++ b/lxd/container_file.go
@@ -38,7 +38,7 @@ func containerFileHandler(d *Daemon, r *http.Request) Response {
 	case "GET":
 		return containerFileGet(c, path, r)
 	case "POST":
-		return containerFilePut(c, path, r)
+		return containerFilePost(c, path, r)
 	case "DELETE":
 		return containerFileDelete(c, path, r)
 	default:
@@ -91,7 +91,7 @@ func containerFileGet(c container, path string, r *http.Request) Response {
 	}
 }
 
-func containerFilePut(c container, path string, r *http.Request) Response {
+func containerFilePost(c container, path string, r *http.Request) Response {
 	// Extract file ownership and mode from headers
 	uid, gid, mode, type_, write := shared.ParseLXDFileHeaders(r.Header)
 


More information about the lxc-devel mailing list