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

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: Christian Brauner <[email protected]>
From 77903ffdc239fb1f412545b8c2b15ead0d0554c0 Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Thu, 11 Jan 2018 13:45:33 +0100
Subject: [PATCH] console: use correct logic

Signed-off-by: Christian Brauner <[email protected]>
---
 lxd/container_console.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lxd/container_console.go b/lxd/container_console.go
index 07ef18b4f..551519ed5 100644
--- a/lxd/container_console.go
+++ b/lxd/container_console.go
@@ -326,7 +326,7 @@ func containerConsoleLogGet(d *Daemon, r *http.Request) 
Response {
                return SmartError(err)
        }
 
-       if util.RuntimeLiblxcVersionAtLeast(3, 0, 0) {
+       if !util.RuntimeLiblxcVersionAtLeast(3, 0, 0) {
                return BadRequest(fmt.Errorf("Querying the console buffer 
requires liblxc >= 3.0"))
        }
 
@@ -373,7 +373,7 @@ func containerConsoleLogDelete(d *Daemon, r *http.Request) 
Response {
                return SmartError(err)
        }
 
-       if util.RuntimeLiblxcVersionAtLeast(3, 0, 0) {
+       if !util.RuntimeLiblxcVersionAtLeast(3, 0, 0) {
                return BadRequest(fmt.Errorf("Clearing the console buffer 
requires liblxc >= 3.0"))
        }
 
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to