From b8aa844171bef7c49c72aa6a756ef59a9a22f5fd Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Tue, 9 Aug 2022 10:27:51 +0200 Subject: [PATCH] Fix setting of toolkit config option in toolkit container Signed-off-by: Evan Lezar --- tools/container/toolkit/toolkit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/container/toolkit/toolkit.go b/tools/container/toolkit/toolkit.go index b119eb42..04da8b8c 100644 --- a/tools/container/toolkit/toolkit.go +++ b/tools/container/toolkit/toolkit.go @@ -123,7 +123,7 @@ func main() { &cli.BoolFlag{ Name: "accept-nvidia-visible-devices-as-volume-mounts", Usage: "Set the accept-nvidia-visible-devices-as-volume-mounts config option", - Destination: &opts.acceptNVIDIAVisibleDevicesWhenUnprivileged, + Destination: &opts.acceptNVIDIAVisibleDevicesAsVolumeMounts, EnvVars: []string{"ACCEPT_NVIDIA_VISIBLE_DEVICES_AS_VOLUME_MOUNTS"}, }, &cli.StringFlag{