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 May 8, 2020
1 parent b26a1f5 commit 9826a5e
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 9826a5e

Please sign in to comment.