Add vCenter reference cache tables and update related functions
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -180,6 +180,8 @@ func ensureDestinationImportTable(ctx context.Context, destination *sqlx.DB, tab
|
||||
return EnsureVcenterLatestTotalsTable(ctx, destination)
|
||||
case tableName == "vcenter_aggregate_totals":
|
||||
return EnsureVcenterAggregateTotalsTable(ctx, destination)
|
||||
case tableName == "vcenter_folder_cache", tableName == "vcenter_resource_pool_cache", tableName == "vcenter_host_cache":
|
||||
return EnsureVcenterReferenceCacheTables(ctx, destination)
|
||||
default:
|
||||
return fmt.Errorf("source table %q does not exist in postgres and cannot be auto-created", tableName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user