Skip to content

Commit

Permalink
change "from" to "to" for odo link (#2334)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhelfand authored and openshift-merge-robot committed Nov 1, 2019
1 parent 0295519 commit 21bffa4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/odo/cli/component/common_link.go
Expand Up @@ -115,7 +115,14 @@ func (o *commonLinkOptions) run() (err error) {
return err
}

log.Successf("%s %s has been successfully %sed from the component %s\n", linkType, o.suppliedName, o.operationName, o.Component())
switch o.operationName {
case "link":
log.Successf("%s %s has been successfully linked to the component %s\n", linkType, o.suppliedName, o.Component())
case "unlink":
log.Successf("%s %s has been successfully unlinked from the component %s\n", linkType, o.suppliedName, o.Component())
default:
return fmt.Errorf("unknown operation %s", o.operationName)
}

secret, err := o.Client.GetSecret(o.secretName, o.Project)
if err != nil {
Expand Down

0 comments on commit 21bffa4

Please sign in to comment.