Rename internal introspection tables. Fix warning notifications from RefreshConnections. Improve error handlingh for config inconsistencies in conneciton and plugin config. Closes #3886

This commit is contained in:
kaidaguerre
2023-09-22 16:02:41 +01:00
committed by GitHub
parent 0581cca289
commit 79606c5bcd
88 changed files with 1378 additions and 762 deletions

View File

@@ -3,8 +3,6 @@ package connection_sync
import (
"context"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_client"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
)
@@ -24,8 +22,7 @@ func WaitForSearchPathSchemas(ctx context.Context, client db_common.Client, sear
// NOTE: if we failed to load conection state, this must be because we are connected to an older version of the CLI
// just return nil error
_, missingTable, relationNotFound := db_client.IsRelationNotFoundError(err)
if relationNotFound && missingTable == constants.ConnectionStateTable {
if db_common.IsRelationNotFoundError(err) {
return nil
}