Commit 5a8929b1 by Christian Brauner

lxc-copy: correct order of copy and original

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: 's avatarChristian Brauner <christian.brauner@mailbox.org>
parent ebffa9db
...@@ -358,8 +358,7 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath, ...@@ -358,8 +358,7 @@ static int do_clone(struct lxc_container *c, char *newname, char *newpath,
return -1; return -1;
} }
INFO("Created container %s as %s of %s\n", newname, INFO("Created %s as %s of %s\n", newname, task ? "snapshot" : "copy", c->name);
task ? "snapshot" : "copy", c->name);
lxc_container_put(clone); lxc_container_put(clone);
...@@ -421,7 +420,7 @@ static int do_clone_ephemeral(struct lxc_container *c, ...@@ -421,7 +420,7 @@ static int do_clone_ephemeral(struct lxc_container *c,
goto destroy_and_put; goto destroy_and_put;
if (!my_args.quiet) 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) { if (!arg->daemonize && arg->argc) {
clone->want_daemonize(clone, true); clone->want_daemonize(clone, true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment