Commit 0590e82c by Serge Hallyn

api_create: undo unneeded chunk in previous commit

lxc_conf exists after api_save_config Signed-off-by: 's avatarSerge Hallyn <serge.hallyn@ubuntu.com>
parent cf465fe4
...@@ -1128,7 +1128,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t, ...@@ -1128,7 +1128,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t,
goto out; goto out;
} }
if (c->lxc_conf) {
/* /*
* either template or rootfs.path should be set. * either template or rootfs.path should be set.
* if both template and rootfs.path are set, template is setup as rootfs.path. * if both template and rootfs.path are set, template is setup as rootfs.path.
...@@ -1146,7 +1145,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t, ...@@ -1146,7 +1145,6 @@ static bool lxcapi_create(struct lxc_container *c, const char *t,
ret = true; ret = true;
goto out; goto out;
} }
}
/* Mark that this container is being created */ /* Mark that this container is being created */
if ((partial_fd = create_partial(c)) < 0) if ((partial_fd = create_partial(c)) < 0)
......
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