Skip to content

Commit

Permalink
lxc-destroy: send successful output messages to log info instead of e…
Browse files Browse the repository at this point in the history
…rror.

Signed-off-by: Caio B. Silva <caioboffo@gmail.com>
  • Loading branch information
caioboffo committed Oct 9, 2019
1 parent 559b39b commit 65b92ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lxc/tools/lxc_destroy.c
Expand Up @@ -256,19 +256,19 @@ int main(int argc, char *argv[])
}

if (!c->is_defined(c)) {
ERROR("Container is not defined");
INFO("Container %s not found.", my_args.name);
lxc_container_put(c);
exit(EXIT_FAILURE);
}

if (my_args.task == SNAP) {
bret = do_destroy_with_snapshots(c);
if (bret)
ERROR("Destroyed container %s including snapshots", my_args.name);
INFO("Destroyed container %s including snapshots", my_args.name);
} else {
bret = do_destroy(c);
if (bret)
ERROR("Destroyed container %s", my_args.name);
INFO("Destroyed container %s", my_args.name);
}

lxc_container_put(c);
Expand Down

0 comments on commit 65b92ea

Please sign in to comment.