Merge pull request #15540 from influxdata/fix-system-bucket-lookup
fix(influxdb): Add OrgID to system bucketspull/15543/head
commit
928218f7f4
|
@ -189,6 +189,7 @@ func (s *Service) findBucketByName(ctx context.Context, tx Tx, orgID influxdb.ID
|
||||||
Name: influxdb.TasksSystemBucketName,
|
Name: influxdb.TasksSystemBucketName,
|
||||||
RetentionPeriod: influxdb.TasksSystemBucketRetention,
|
RetentionPeriod: influxdb.TasksSystemBucketRetention,
|
||||||
Description: "System bucket for task logs",
|
Description: "System bucket for task logs",
|
||||||
|
OrgID: orgID,
|
||||||
}, nil
|
}, nil
|
||||||
case influxdb.MonitoringSystemBucketName:
|
case influxdb.MonitoringSystemBucketName:
|
||||||
return &influxdb.Bucket{
|
return &influxdb.Bucket{
|
||||||
|
@ -197,6 +198,7 @@ func (s *Service) findBucketByName(ctx context.Context, tx Tx, orgID influxdb.ID
|
||||||
Name: influxdb.MonitoringSystemBucketName,
|
Name: influxdb.MonitoringSystemBucketName,
|
||||||
RetentionPeriod: influxdb.MonitoringSystemBucketRetention,
|
RetentionPeriod: influxdb.MonitoringSystemBucketRetention,
|
||||||
Description: "System bucket for monitoring logs",
|
Description: "System bucket for monitoring logs",
|
||||||
|
OrgID: orgID,
|
||||||
}, nil
|
}, nil
|
||||||
default:
|
default:
|
||||||
return nil, &influxdb.Error{
|
return nil, &influxdb.Error{
|
||||||
|
|
Loading…
Reference in New Issue