mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Merge pull request #573 from elezar/bugfix-in-log-argument
Fix bug in argument parsing for logger creation
This commit is contained in:
commit
f55aac0232
@ -238,7 +238,7 @@ func parseArgs(args []string) loggerConfig {
|
|||||||
var value string
|
var value string
|
||||||
switch {
|
switch {
|
||||||
case len(parts) == 2:
|
case len(parts) == 2:
|
||||||
value = parts[2]
|
value = parts[1]
|
||||||
case i+1 < len(args):
|
case i+1 < len(args):
|
||||||
value = args[i+1]
|
value = args[i+1]
|
||||||
i++
|
i++
|
||||||
|
Loading…
Reference in New Issue
Block a user