Skip to content

Commit ad74a14

Browse files
committed
Merge branch 'upstream-fix-list-command-semantics' into 'master'
Change default "list" command to set mig-config / mig-monitor = NULL See merge request nvidia/container-toolkit/libnvidia-container!38
2 parents a672e3b + 4d43217 commit ad74a14

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/cli/list.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,8 @@ list_parser(int key, char *arg, struct argp_state *state)
6565
if (state->argc == 1) {
6666
if ((ctx->devices = xstrdup(&err, "all")) == NULL)
6767
goto fatal;
68-
if ((ctx->mig_config = xstrdup(&err, "all")) == NULL)
69-
goto fatal;
70-
if ((ctx->mig_monitor = xstrdup(&err, "all")) == NULL)
71-
goto fatal;
68+
ctx->mig_config = NULL;
69+
ctx->mig_monitor = NULL;
7270
ctx->compat32 = true;
7371
ctx->list_libs = true;
7472
ctx->list_bins = true;

0 commit comments

Comments
 (0)