Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions bundle/direct/dresources/postgres_branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,9 @@ func makePostgresBranchRemote(branch *postgres.Branch) *PostgresBranchRemote {
if branch.Spec != nil {
spec = *branch.Spec
}
var branchID string
if branch.Status != nil {
branchID = branch.Status.BranchId
}
return &PostgresBranchRemote{
BranchSpec: spec,
BranchId: branchID,
BranchId: branch.BranchId,
Parent: branch.Parent,
Name: branch.Name,
Status: branch.Status,
Expand Down
6 changes: 1 addition & 5 deletions bundle/direct/dresources/postgres_database.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,9 @@ func makePostgresDatabaseRemote(database *postgres.Database) *PostgresDatabaseRe
if database.Spec != nil {
spec = *database.Spec
}
var databaseID string
if database.Status != nil {
databaseID = database.Status.DatabaseId
}
return &PostgresDatabaseRemote{
DatabaseDatabaseSpec: spec,
DatabaseId: databaseID,
DatabaseId: database.DatabaseId,
Parent: database.Parent,
Name: database.Name,
Status: database.Status,
Expand Down
6 changes: 1 addition & 5 deletions bundle/direct/dresources/postgres_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,9 @@ func makePostgresEndpointRemote(endpoint *postgres.Endpoint) *PostgresEndpointRe
if endpoint.Spec != nil {
spec = *endpoint.Spec
}
var endpointID string
if endpoint.Status != nil {
endpointID = endpoint.Status.EndpointId
}
return &PostgresEndpointRemote{
EndpointSpec: spec,
EndpointId: endpointID,
EndpointId: endpoint.EndpointId,
Parent: endpoint.Parent,
Name: endpoint.Name,
Status: endpoint.Status,
Expand Down
6 changes: 1 addition & 5 deletions bundle/direct/dresources/postgres_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,9 @@ func makePostgresProjectRemote(project *postgres.Project) *PostgresProjectRemote
if project.Spec != nil {
spec = *project.Spec
}
var projectID string
if project.Status != nil {
projectID = project.Status.ProjectId
}
return &PostgresProjectRemote{
ProjectSpec: spec,
ProjectId: projectID,
ProjectId: project.ProjectId,
InitialEndpointSpec: project.InitialEndpointSpec,
Name: project.Name,
Status: project.Status,
Expand Down
6 changes: 1 addition & 5 deletions bundle/direct/dresources/postgres_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,9 @@ func makePostgresRoleRemote(role *postgres.Role) *PostgresRoleRemote {
if role.Spec != nil {
spec = *role.Spec
}
var roleID string
if role.Status != nil {
roleID = role.Status.RoleId
}
return &PostgresRoleRemote{
RoleRoleSpec: spec,
RoleId: roleID,
RoleId: role.RoleId,
Parent: role.Parent,
Name: role.Name,
Status: role.Status,
Expand Down
Loading