Skip to content

Commit

Permalink
lxc-copy: correct order of copy and original
Browse files Browse the repository at this point in the history
	lxc-copy -n ORIG -N COPY -e

accidently printed

	"Created ORIG as clone of COPY"

instead of

	"Created COPY as clone of ORIG".
Fix the ordering.

Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
  • Loading branch information
Christian Brauner committed Mar 1, 2016
1 parent ebffa9d commit 5a8929b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lxc/lxc_copy.c
Expand Up @@ -358,8 +358,7 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath,
return -1;
}

INFO("Created container %s as %s of %s\n", newname,
task ? "snapshot" : "copy", c->name);
INFO("Created %s as %s of %s\n", newname, task ? "snapshot" : "copy", c->name);

lxc_container_put(clone);

Expand Down Expand Up @@ -421,7 +420,7 @@ static int do_clone_ephemeral(struct lxc_container *c,
goto destroy_and_put;

if (!my_args.quiet)
printf("Created %s as %s of %s\n", arg->name, "clone", arg->newname);
printf("Created %s as clone of %s\n", arg->newname, arg->name);

if (!arg->daemonize && arg->argc) {
clone->want_daemonize(clone, true);
Expand Down

0 comments on commit 5a8929b

Please sign in to comment.