diff --git a/go.mod b/go.mod index e86eb786eb..9efa80a61a 100644 --- a/go.mod +++ b/go.mod @@ -67,7 +67,6 @@ require ( github.com/rancher/spur v0.0.0-20200617165101-8702c8e4ce7a github.com/rancher/wrangler v0.6.1 github.com/sirupsen/logrus v1.4.2 - github.com/urfave/cli v1.22.2 google.golang.org/grpc v1.26.0 k8s.io/api v0.18.0 k8s.io/apimachinery v0.18.0 diff --git a/pkg/cli/cmds/k3sopts.go b/pkg/cli/cmds/k3sopts.go index 4dbb505ffc..acfcecbd11 100644 --- a/pkg/cli/cmds/k3sopts.go +++ b/pkg/cli/cmds/k3sopts.go @@ -109,9 +109,8 @@ func flagSetDefault(flag cli.Flag, opt *K3SFlagOption) { if v.CanSet() { switch t := flag.(type) { case *cli.StringFlag: - x := opt.Default - t.DefaultText = x - t.Destination = &x + t.DefaultText = opt.Default + t.Destination = &opt.Default t.Value = opt.Default case *cli.StringSliceFlag: t.DefaultText = opt.Default