Skip to content

Commit

Permalink
Fixes occlient error while creating new URL client
Browse files Browse the repository at this point in the history
  • Loading branch information
mik-dass committed Jan 29, 2021
1 parent d8dae3a commit d1b39c8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/odo/cli/url/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (o *ListOptions) Complete(name string, cmd *cobra.Command, args []string) (

o.client = url.NewClient(url.ClientOptions{
LocalConfigProvider: o.Context.LocalConfigProvider,
OCClient: *genericclioptions.Client(cmd),
OCClient: *o.Context.Client,
IsRouteSupported: routeSupported,
})
return
Expand Down
3 changes: 0 additions & 3 deletions pkg/odo/genericclioptions/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ func New(parameters CreateParameters, toggles ...bool) (context *Context, err er
context.ComponentContext = parameters.ComponentContext
}

context = NewContext(parameters.Cmd)
context.ComponentContext = parameters.ComponentContext

err = context.InitConfigFromContext()
if err != nil {
return nil, err
Expand Down

0 comments on commit d1b39c8

Please sign in to comment.