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

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) ===
Partially reverts 65b92ea5fcab559fd21be2685bd2f15ef6d33532 so that trying to destroy a non-existent container gives an error message.

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From 87f2b80c9b81d925284afc355552ff9a37811de6 Mon Sep 17 00:00:00 2001
From: Thomas Parrott <thomas.parr...@canonical.com>
Date: Mon, 14 Oct 2019 10:10:21 +0100
Subject: [PATCH] lxc/tools/lxc/destory: Restores error message on container
 destroy

Partially reverts 65b92ea5fcab559fd21be2685bd2f15ef6d33532 so that trying to 
destroy a non-existent container gives an error message.

Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
---
 src/lxc/tools/lxc_destroy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/tools/lxc_destroy.c b/src/lxc/tools/lxc_destroy.c
index 9fb511e046..d1c6cc6207 100644
--- a/src/lxc/tools/lxc_destroy.c
+++ b/src/lxc/tools/lxc_destroy.c
@@ -256,7 +256,7 @@ int main(int argc, char *argv[])
        }
 
        if (!c->is_defined(c)) {
-               INFO("Container %s not found.", my_args.name);
+               ERROR("Container is not defined");
                lxc_container_put(c);
                exit(EXIT_FAILURE);
        }
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to