Skip to content

Commit d3a5b44

Browse files
mohitsumanjrichter1
authored andcommitted
add --wait to linkComponent
1 parent be237fb commit d3a5b44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openshift/component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class Component extends OpenShiftItem {
102102
if (!componentToLink) return null;
103103

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

0 commit comments

Comments
 (0)