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

Commit

Permalink
Fix get config policy rules from plugin catalog
Browse files Browse the repository at this point in the history
Plugin key used to get a config policy from a plugin was depracated,
causing config policy rules not to be applied correctly.
  • Loading branch information
kindermoumoute committed Oct 27, 2016
1 parent 7d1cacf commit 836d87e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/subscription_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (s *subscriptionGroup) process(id string) (serrs []serror.SnapError) {
plugins = append(plugins, plugin)
// add defaults to plugins (exposed in a plugins ConfigPolicy)
if lp, err := s.pluginManager.get(
fmt.Sprintf("%s:%s:%d",
fmt.Sprintf("%s"+core.Separator+"%s"+core.Separator+"%d",
plugin.TypeName(),
plugin.Name(),
plugin.Version())); err == nil && lp.ConfigPolicy != nil {
Expand Down

0 comments on commit 836d87e

Please sign in to comment.