Skip to content

Commit

Permalink
Make cfgvars unit test pass on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Natanael Copa <ncopa@mirantis.com>
  • Loading branch information
ncopa committed Dec 19, 2024
1 parent e3ab3c1 commit 2078d84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/config/cfgvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func WithCommand(cmd command) CfgVarOption {
}

if f, err := flags.GetString("kubelet-root-dir"); err == nil && f != "" {
c.KubeletRootDir = f
if f, err := filepath.Abs(f); err == nil {
c.KubeletRootDir = f
}
}

if f, err := flags.GetString("config"); err == nil && f != "" {
Expand Down

0 comments on commit 2078d84

Please sign in to comment.