Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Fix #1393 change namespace used in ConfigPolicy in mock2-grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
kdembler committed Jul 24, 2017
1 parent 0e4bfed commit 4aa4401
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ func (f *Mock) GetMetricTypes(cfg plugin.Config) ([]plugin.Metric, error) {
func (f *Mock) GetConfigPolicy() (plugin.ConfigPolicy, error) {
p := plugin.NewConfigPolicy()

err := p.AddNewStringRule([]string{"intel", "mock", "foo"}, "name", false, plugin.SetDefaultString("bob"))
err := p.AddNewStringRule([]string{"intel", "mock", "test%>"}, "name", false, plugin.SetDefaultString("bob"))
if err != nil {
return *p, err
}

err = p.AddNewStringRule([]string{"intel", "mock", "foo"}, "password", true)
err = p.AddNewStringRule([]string{"intel", "mock", "/foo=㊽"}, "password", true)

return *p, err
}
Expand Down

0 comments on commit 4aa4401

Please # to comment.