Skip to content

Commit 691ddd4

Browse files
authored
fix: Handle NoConnection (#14112)
#### Summary See https://github.com/cloudquery/cloudquery/actions/runs/6328679225/job/17187394279#step:6:89 I missed this in #14102. If we pass empty tables to `FilterDfs` it fails since there are no matches. <!--
1 parent 58b07cd commit 691ddd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/source/firestore/client/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ func Configure(ctx context.Context, logger zerolog.Logger, spec []byte, opts plu
8585
}
8686

8787
func (c Client) Tables(ctx context.Context, opts plugin.TableOptions) (schema.Tables, error) {
88+
if c.options.NoConnection {
89+
return schema.Tables{}, nil
90+
}
8891
return c.tables.FilterDfs(opts.Tables, opts.SkipTables, opts.SkipDependentTables)
8992
}
9093

0 commit comments

Comments
 (0)