mirror of
https://github.com/docker/cli.git
synced 2026-09-25 07:50:37 -05:00
plugingetter: Avoid all caps for constant declarations
Go style calls for mixed caps instead of all caps: https://golang.org/doc/effective_go.html#mixed-caps Change LOOKUP, ACQUIRE, and RELEASE to Lookup, Acquire, and Release. This vendors a fork of libnetwork for now, to deal with a cyclic dependency issue. The change will be upstream to libnetwork once this is merged. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com> Upstream-commit: 428600108cce0a11e65ec4ebd9e439e947b55da7 Component: engine
This commit is contained in:
@@ -22,7 +22,7 @@ func lookupPlugin(name string, pg plugingetter.PluginGetter, config Options) (Dr
|
||||
if !config.ExperimentalEnabled {
|
||||
return nil, fmt.Errorf("graphdriver plugins are only supported with experimental mode")
|
||||
}
|
||||
pl, err := pg.Get(name, "GraphDriver", plugingetter.ACQUIRE)
|
||||
pl, err := pg.Get(name, "GraphDriver", plugingetter.Acquire)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("Error looking up graphdriver plugin %s: %v", name, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user