Skip to content

Commit

Permalink
add --wait to linkComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitsuman authored and jrichter1 committed Dec 3, 2018
1 parent be237fb commit d3a5b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openshift/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class Component extends OpenShiftItem {
if (!componentToLink) return null;

return Promise.resolve()
.then(() => Component.odo.execute(`odo link ${componentToLink.getName()} --app ${app.getName()} --project ${project.getName()} --component ${context.getName()}`))
.then(() => Component.odo.execute(`odo link ${componentToLink.getName()} --app ${app.getName()} --project ${project.getName()} --component ${context.getName()} --wait`))
.then(() => `component '${componentToLink.getName()}' successfully linked with component '${context.getName()}'`)
.catch((err) => Promise.reject(`Failed to link component with error '${err}'`));
}
Expand Down

0 comments on commit d3a5b44

Please sign in to comment.