Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: return response early (#6574)

Danny Xu4adb6582ea1e
diff --git a/backend/api/v1/instance_role_service.go b/backend/api/v1/instance_role_service.go
index 5cc29d19a0..be5000c858 100644
--- a/backend/api/v1/instance_role_service.go
+++ b/backend/api/v1/instance_role_service.go
@@ -93,6 +93,7 @@ func (s *InstanceRoleService) ListInstanceRoles(ctx context.Context, request *v1
Attribute: &u.Grant,
})
}
+ return response, nil
}
roleList, err := func() ([]*db.DatabaseRoleMessage, error) {
diff --git a/backend/plugin/db/redshift/role.go b/backend/plugin/db/redshift/role.go
index aa2a32218f..aac4ece2cf 100644
--- a/backend/plugin/db/redshift/role.go
+++ b/backend/plugin/db/redshift/role.go
@@ -10,25 +10,25 @@ import (
// CreateRole creates the role.
func (*Driver) CreateRole(_ context.Context, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {
- return nil, errors.Errorf("create role for MSSQL is not implemented yet")
+ return nil, errors.Errorf("create role for Redshift is not implemented yet")
}
// UpdateRole updates the role.
func (*Driver) UpdateRole(_ context.Context, _ string, _ *db.DatabaseRoleUpsertMessage) (*db.DatabaseRoleMessage, error) {
- return nil, errors.Errorf("update role for MSSQL is not implemented yet")
+ return nil, errors.Errorf("update role for Redshift is not implemented yet")
}
// FindRole finds the role by name.
func (*Driver) FindRole(_ context.Context, _ string) (*db.DatabaseRoleMessage, error) {
- return nil, errors.Errorf("find role for MSSQL is not implemented yet")
+ return nil, errors.Errorf("find role for Redshift is not implemented yet")
}
// ListRole lists the role.
func (*Driver) ListRole(_ context.Context) ([]*db.DatabaseRoleMessage, error) {
- return nil, errors.Errorf("list role for MSSQL is not implemented yet")
+ return nil, errors.Errorf("list role for Redshift is not implemented yet")
}
// DeleteRole deletes the role by name.
func (*Driver) DeleteRole(_ context.Context, _ string) error {
- return errors.Errorf("delete role for MSSQL is not implemented yet")
+ return errors.Errorf("delete role for Redshift is not implemented yet")
}