提交 10e69a24 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!68 add inner default runtime when neither `--runtime` nor `default-runtime` is specified

Merge pull request !68 from gaohuatao/next_llt
......@@ -25,6 +25,7 @@ extern "C" {
#endif
#define DEFAULT_IM_SERVER_SOCK_ADDR "unix:///var/run/isulad/isula_image.sock"
#define DEFAULT_RUNTIME_NAME "lcr"
struct isulad_conf {
pthread_rwlock_t isulad_conf_rwlock;
......
......@@ -729,9 +729,9 @@ static int preparate_runtime_environment(const container_create_request *request
} else {
*runtime = conf_get_default_runtime();
}
if (*runtime == NULL) {
*cc = ISULAD_ERR_INPUT;
return -1;
*runtime = util_strdup_s(DEFAULT_RUNTIME_NAME);
}
if (runtime_check(*runtime, &runtime_res) != 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册