Skip to content

Commit

Permalink
Fix --app and --all-apps coexist
Browse files Browse the repository at this point in the history
  • Loading branch information
jichenjc committed Apr 21, 2020
1 parent 0a3f5de commit d7de4ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/odo/cli/component/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (lo *ListOptions) Validate() (err error) {

var project, app string

if len(lo.Application) != 0 && lo.allAppsFlag {
return odoutil.ThrowContextError()
}

if !util.CheckKubeConfigExist() {
project = lo.LocalConfigInfo.GetProject()
app = lo.LocalConfigInfo.GetApplication()
Expand Down

0 comments on commit d7de4ac

Please sign in to comment.