Skip to content

Commit

Permalink
catch bad flag input case in 'cloud server clone'
Browse files Browse the repository at this point in the history
  • Loading branch information
sgsullivan committed Jan 21, 2020
1 parent 12a7e7c commit b5eeaf5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/cloudServerClone.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ Server is not on a Private Parent.`,
if privateParentFlag != "" && configIdFlag != -1 {
lwCliInst.Die(fmt.Errorf("cant pass both --config_id and --private-parent flags"))
}
if privateParentFlag == "" && configIdFlag == -1 {
lwCliInst.Die(fmt.Errorf("must pass --config_id or --private-parent"))
}

var privateParentUniqId string
if privateParentFlag != "" {
Expand Down

0 comments on commit b5eeaf5

Please sign in to comment.