Skip to content

Commit

Permalink
fix: don't panic in app.Describe() if container not found (#5873) [sk…
Browse files Browse the repository at this point in the history
…ip ci]
  • Loading branch information
rfay committed Feb 21, 2024
1 parent 12da4ba commit 8f7a15d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/ddevapp/ddevapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,10 @@ func (app *DdevApp) Describe(short bool) (map[string]interface{}, error) {
dbinfo["dbname"] = "db"
dbinfo["host"] = "db"
dbPublicPort, err := app.GetPublishedPort("db")
util.CheckErr(err)
if err != nil {
util.Warning("failed to GetPublishedPort(db): %v", err)
}
dbinfo["dbPort"] = GetExposedPort(app, "db")
util.CheckErr(err)
dbinfo["published_port"] = dbPublicPort
dbinfo["database_type"] = nodeps.MariaDB // default
dbinfo["database_type"] = app.Database.Type
Expand Down

0 comments on commit 8f7a15d

Please sign in to comment.