Merge pull request #387 from influxdata/remove-mrfusion
Remove mrfusion name from sourcepull/388/head
commit
3bdcb2c578
|
@ -103,9 +103,9 @@ An example usage in Go would be:
|
||||||
|
|
||||||
```go
|
```go
|
||||||
func ShallIPass(ctx context.Context) (string, error) {
|
func ShallIPass(ctx context.Context) (string, error) {
|
||||||
principal := ctx.Value(mrfusion.PrincipalKey).(mrfusion.Principal)
|
principal := ctx.Value(chronograf.PrincipalKey).(chronograf.Principal)
|
||||||
if principal != "gandolf@moria.misty.mt" {
|
if principal != "gandolf@moria.misty.mt" {
|
||||||
return "you shall not pass", mrfusion.ErrAuthentication
|
return "you shall not pass", chronograf.ErrAuthentication
|
||||||
}
|
}
|
||||||
return "run you fools", nil
|
return "run you fools", nil
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,8 +110,7 @@ func openService(boltPath, cannedPath string, logger chronograf.Logger) Service
|
||||||
if err := db.Open(); err != nil {
|
if err := db.Open(); err != nil {
|
||||||
logger.
|
logger.
|
||||||
WithField("component", "boltstore").
|
WithField("component", "boltstore").
|
||||||
Panic("Unable to open boltdb; is there a mrfusion already running?", err)
|
Panic("Unable to open boltdb; is there a chronograf already running?", err)
|
||||||
panic(err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apps := canned.NewApps(cannedPath, &uuid.V4{}, logger)
|
apps := canned.NewApps(cannedPath, &uuid.V4{}, logger)
|
||||||
|
|
Loading…
Reference in New Issue