Skip to content

Commit

Permalink
crun: really drop version check
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <[email protected]>
  • Loading branch information
giuseppe committed Feb 17, 2024
1 parent d43c208 commit 0860c0f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libcrun/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -2820,9 +2820,6 @@ libcrun_container_create (libcrun_context_t *context, libcrun_container_t *conta

container->context = context;

if (def->oci_version && strstr (def->oci_version, "1.0") == NULL)
return crun_make_error (err, 0, "unknown version specified");

ret = check_config_file (def, context, err);
if (UNLIKELY (ret < 0))
return ret;
Expand Down Expand Up @@ -4120,9 +4117,6 @@ libcrun_container_restore (libcrun_context_t *context, const char *id, libcrun_c
container->context = context;
def = container->container_def;

if (def->oci_version && strstr (def->oci_version, "1.0") == NULL)
return crun_make_error (err, 0, "unknown version specified");

ret = check_config_file (def, context, err);
if (UNLIKELY (ret < 0))
return ret;
Expand Down

0 comments on commit 0860c0f

Please sign in to comment.