Skip to content

Commit 910cc12

Browse files
committed
Fix plugin model upgrade
When upgrading a plugin via the model interface, it would yield the following error: AttributeError: 'Plugin' object has no attribute '_reload' It appears that the proper method is `self.reload()`. This is what is used by all other methods in the class and base. I'm not finding any references to `_reload` apart from this instance in the project either. I've verified that this patch fixes the issue on my machine and all tests pass. Signed-off-by: Ian Fijolek <[email protected]>
1 parent 9d8cd02 commit 910cc12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/models/plugins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def upgrade(self, remote=None):
119119
privileges = self.client.api.plugin_privileges(remote)
120120
for d in self.client.api.upgrade_plugin(self.name, remote, privileges):
121121
yield d
122-
self._reload()
122+
self.reload()
123123

124124

125125
class PluginCollection(Collection):

0 commit comments

Comments
 (0)