1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

plugin.Manager.setupNewPlugin() remove unused blobsums argument

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2020-09-23 10:42:45 +02:00
parent 46cdcd206c
commit 768ba77d37
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -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
}