mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-03-16 12:06:29 +00:00
Configure plugin after installing it. (#135)
This commit is contained in:
parent
74475d1d9b
commit
3a0d3e15fb
2
changelogs/fragments/135-docker_plugin-config.yml
Normal file
2
changelogs/fragments/135-docker_plugin-config.yml
Normal file
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "docker_plugin - also configure plugin after installing (https://github.com/ansible-collections/community.docker/issues/118, https://github.com/ansible-collections/community.docker/pull/135)."
|
||||
@ -226,6 +226,8 @@ class DockerPluginManager(object):
|
||||
if not self.check_mode:
|
||||
try:
|
||||
self.existing_plugin = self.dclient.plugins.install(self.parameters.plugin_name, None)
|
||||
if self.parameters.plugin_options:
|
||||
self.existing_plugin.configure(prepare_options(self.parameters.plugin_options))
|
||||
except APIError as e:
|
||||
self.client.fail(to_native(e))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user