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

Plugin loading ends with error when bool type from the cpolicy package is used #758

Closed
katarzyna-z opened this issue Mar 10, 2016 · 1 comment

Comments

@katarzyna-z
Copy link
Contributor

Plugin loading ends with error "loading plugin:
gob: type not registered for interface: cpolicy.BoolRule" when support for bool type from the cpolicy package is used.

I was trying to use support for bool type in the cpolicy package (added in #740) and I added something like this in GetConfigPolicy function for publisher plugin:

cp := cpolicy.New()
config := cpolicy.NewPolicyNode()

r1, err := cpolicy.NewBoolRule("test1", false)
handleErr(err)
r1.Description = "description"

config.Add(r1)
cp.Add([]string{""}, config)
@andrzej-k andrzej-k changed the title Plugin loading ends with error "loading plugin: gob: type not registered for interface: cpolicy.BoolRule" when support for bool type from the cpolicy package is used Plugin loading ends with error when bool type from the cpolicy package is used Mar 10, 2016
@katarzyna-z
Copy link
Contributor Author

I tested the fix and it works correctly. Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants