Merge pull request #15540 from influxdata/fix-system-bucket-lookup

fix(influxdb): Add OrgID to system buckets
pull/15543/head
Brandon Farmer 2019-10-22 16:10:01 -07:00 committed by GitHub
commit 928218f7f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,7 @@ func (s *Service) findBucketByName(ctx context.Context, tx Tx, orgID influxdb.ID
Name: influxdb.TasksSystemBucketName,
RetentionPeriod: influxdb.TasksSystemBucketRetention,
Description: "System bucket for task logs",
OrgID: orgID,
}, nil
case influxdb.MonitoringSystemBucketName:
return &influxdb.Bucket{
@ -197,6 +198,7 @@ func (s *Service) findBucketByName(ctx context.Context, tx Tx, orgID influxdb.ID
Name: influxdb.MonitoringSystemBucketName,
RetentionPeriod: influxdb.MonitoringSystemBucketRetention,
Description: "System bucket for monitoring logs",
OrgID: orgID,
}, nil
default:
return nil, &influxdb.Error{