File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ func NewUpdateOptions() *UpdateOptions {
3434func (o * UpdateOptions ) Parse (_ * cobra.Command , args []string ) error {
3535 // if not specified, use default config
3636 if len (args ) == 0 {
37- defaultComponents := o .GetDefaultComponents ()
37+ defaultComponents := o .InstallOptions . GetDefaultComponents ()
3838 // update Components to default config
39- o .Components = defaultComponents
39+ o .InstallOptions . Components = defaultComponents
4040 return nil
4141 }
4242 name := args [0 ]
43- if v , ok := o .Components [name ]; ok {
44- o .Components = map [string ]string {name : v }
43+ if v , ok := o .InstallOptions . Components [name ]; ok {
44+ o .InstallOptions . Components = map [string ]string {name : v }
4545 return nil
4646 }
4747 return fmt .Errorf ("component %s is not supported" , name )
You can’t perform that action at this time.
0 commit comments