Skip to content

Commit

Permalink
Prevent link output if createDeployment was not successful in houston
Browse files Browse the repository at this point in the history
  • Loading branch information
andscoop authored and schnie committed May 21, 2018
1 parent 69ac79c commit f6fcfe3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions airflow/airflow.go
Expand Up @@ -100,11 +100,18 @@ func Create(title string) error {
return err
}
deployment, err := api.FetchDeployment(response.Id)
if err != nil {
return err
}

fmt.Println(response.Message)
fmt.Printf("\nAirflow Dashboard: https://%s-airflow.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())
fmt.Printf("Flower Dashboard: https://%s-flower.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())
fmt.Printf("Grafana Dashboard: https://%s-grafana.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())

if response.Success {
fmt.Printf("\nAirflow Dashboard: https://%s-airflow.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())
fmt.Printf("Flower Dashboard: https://%s-flower.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())
fmt.Printf("Grafana Dashboard: https://%s-grafana.%s\n", deployment.ReleaseName, config.CFG.CloudDomain.GetString())
}

return nil
}

Expand Down

0 comments on commit f6fcfe3

Please sign in to comment.