Skip to content

Commit

Permalink
make odo delete work on s2i components in experimental mode
Browse files Browse the repository at this point in the history
  • Loading branch information
girishramnani committed Jul 28, 2020
1 parent 9a8d1bc commit a530805
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/odo/cli/url/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"github.com/openshift/odo/pkg/odo/genericclioptions"
"github.com/openshift/odo/pkg/odo/util/completion"
"github.com/openshift/odo/pkg/odo/util/experimental"
"github.com/openshift/odo/pkg/util"
"github.com/pkg/errors"
"github.com/spf13/cobra"
ktemplates "k8s.io/kubectl/pkg/util/templates"
Expand Down Expand Up @@ -40,7 +41,7 @@ func NewURLDeleteOptions() *URLDeleteOptions {
// Complete completes URLDeleteOptions after they've been Deleted
func (o *URLDeleteOptions) Complete(name string, cmd *cobra.Command, args []string) (err error) {

if experimental.IsExperimentalModeEnabled() {
if experimental.IsExperimentalModeEnabled() && util.CheckPathExists(o.DevfilePath) {

o.Context = genericclioptions.NewDevfileContext(cmd)
o.urlName = args[0]
Expand Down

0 comments on commit a530805

Please sign in to comment.