Skip to content

Commit

Permalink
chore(csb): log errors if unable to find deployment on update command
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea Zucchini <[email protected]>
  • Loading branch information
pivotal-marcela-campo and zucchinidev authored Nov 9, 2023
1 parent b2544db commit 69c7b47
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions internal/local/update_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ func UpdateService(name, plan, params, cachePath string) {
defer cleanup()

serviceInstance := lookupServiceInstanceByGUID(nameToID(name))
deployment, _ := store().GetTerraformDeployment(fmt.Sprintf("tf:%s:", serviceInstance.GUID))
tfVersion, _ := deployment.TFWorkspace().StateTFVersion()
deployment, err := store().GetTerraformDeployment(fmt.Sprintf("tf:%s:", serviceInstance.GUID))
if err != nil {
log.Fatal(err)
}
tfVersion, err := deployment.TFWorkspace().StateTFVersion()
if err != nil {
log.Fatal(err)
}
broker := startBroker(pakDir)
defer broker.Stop()

Expand Down

0 comments on commit 69c7b47

Please sign in to comment.