Skip to content

Commit

Permalink
Fixed sync set strategy bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ashlineldridge committed Jul 7, 2020
1 parent 17cfcb8 commit d2a334e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/cmdsync/cmdsyncset.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewSetRunner(parent string) *SetRunner {
PreRunE: r.preRunE,
}

c.Flags().StringVar(&r.Strategy, "strategy", "", "update strategy to use.")
c.Flags().StringVar(&r.Dependency.Strategy, "strategy", "", "update strategy to use.")
c.Flags().BoolVar(&r.Dependency.EnsureNotExists, "prune", false,
"prune the dependency when it is synced.")
cmdutil.FixDocs("kpt", parent, c)
Expand All @@ -52,7 +52,6 @@ func NewSetCommand(parent string) *cobra.Command {
type SetRunner struct {
Dependency kptfile.Dependency
Command *cobra.Command
Strategy string
}

func (r *SetRunner) preRunE(_ *cobra.Command, args []string) error {
Expand Down

0 comments on commit d2a334e

Please sign in to comment.