From 768ba77d37b1ee823c3f589e0015645272352a45 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 23 Sep 2020 10:42:45 +0200 Subject: [PATCH] plugin.Manager.setupNewPlugin() remove unused blobsums argument Signed-off-by: Sebastiaan van Stijn --- plugin/manager_linux.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/manager_linux.go b/plugin/manager_linux.go index a147df62f5..0c69ce8975 100644 --- a/plugin/manager_linux.go +++ b/plugin/manager_linux.go @@ -217,7 +217,7 @@ func (pm *Manager) Shutdown() { } func (pm *Manager) upgradePlugin(p *v2.Plugin, configDigest, manifestDigest digest.Digest, blobsums []digest.Digest, tmpRootFSDir string, privileges *types.PluginPrivileges) (err error) { - config, err := pm.setupNewPlugin(configDigest, blobsums, privileges) + config, err := pm.setupNewPlugin(configDigest, privileges) if err != nil { return err } @@ -269,7 +269,7 @@ func (pm *Manager) upgradePlugin(p *v2.Plugin, configDigest, manifestDigest dige return errors.Wrap(err, "error saving upgraded plugin config") } -func (pm *Manager) setupNewPlugin(configDigest digest.Digest, blobsums []digest.Digest, privileges *types.PluginPrivileges) (types.PluginConfig, error) { +func (pm *Manager) setupNewPlugin(configDigest digest.Digest, privileges *types.PluginPrivileges) (types.PluginConfig, error) { configRA, err := pm.blobStore.ReaderAt(context.TODO(), specs.Descriptor{Digest: configDigest}) if err != nil { return types.PluginConfig{}, err @@ -303,7 +303,7 @@ func (pm *Manager) createPlugin(name string, configDigest, manifestDigest digest return nil, errdefs.InvalidParameter(err) } - config, err := pm.setupNewPlugin(configDigest, blobsums, privileges) + config, err := pm.setupNewPlugin(configDigest, privileges) if err != nil { return nil, err }