Fixes interleaving of waitandgetpod b/w ports msg and component created
fixes
@@ -130,7 +130,6 @@ A full list of component types that can be deployed is available using: 'odo com
if len(componentGit) != 0 {
err := component.CreateFromGit(client, componentName, componentImageName, componentGit, applicationName, componentPorts)
checkError(err, "")
- fmt.Printf("Component '%s' was created", componentName)
fmt.Printf("Triggering build from %s.\n\n", componentGit)
err = component.Build(client, componentName, applicationName, true, true, stdout)
checkError(err, "")
@@ -149,7 +148,6 @@ A full list of component types that can be deployed is available using: 'odo com
fmt.Printf("Please wait, creating %s component ...\n", componentName)
err = component.Build(client, componentName, applicationName, false, true, stdout)
checkError(err, "")
- fmt.Printf("Component '%s' was created", componentName)
} else if len(componentBinary) != 0 {
path, err := filepath.Abs(componentBinary)
checkError(err, "")
@@ -159,7 +157,6 @@ A full list of component types that can be deployed is available using: 'odo com
fmt.Printf("Please wait, creating %s component ...\n", componentName)
err = component.Build(client, componentName, applicationName, false, true, stdout)
checkError(err, "")
- fmt.Printf("Component '%s' was created", componentName)
} else {
// we want to use and save absolute path for component
dir, err := filepath.Abs("./")
@@ -169,10 +166,10 @@ A full list of component types that can be deployed is available using: 'odo com
fmt.Printf("Please wait, creating %s component ...\n", componentName)
err = component.Build(client, componentName, applicationName, false, true, stdout)
checkError(err, "")
- fmt.Printf("Component '%s' was created", componentName)
}
ports, err := component.GetComponentPorts(client, componentName, applicationName, false)
checkError(err, "")
+ fmt.Printf("Component '%s' was created", componentName)
if len(ports) > 1 {
fmt.Printf(" and ports %s were opened\n", strings.Join(ports, ","))
} else if len(ports) == 1 {
