Skip to content

Commit

Permalink
tools/lxc_stop: use correct check
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Oct 22, 2018
1 parent 8157e43 commit 489b0b2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lxc/tools/lxc_stop.c
Expand Up @@ -205,8 +205,7 @@ int main(int argc, char *argv[])

/* reboot */
if (my_args.reboot) {
ret = c->reboot2(c, my_args.timeout);
if (ret < 0)
if (!c->reboot2(c, my_args.timeout))
ret = EXIT_FAILURE;
else
ret = EXIT_SUCCESS;
Expand Down

0 comments on commit 489b0b2

Please sign in to comment.