mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
[docker_network] Adding scope
and attachable
flags (#49562)
Incorporating the abandoned work from PRs #35288 and #45552. Also adding in the version checking from `docker_container.py`, which should be abstracted out to `docker_common.py`.
This commit is contained in:
parent
4f9f1754b4
commit
73640a4190
6 changed files with 206 additions and 15 deletions
|
@ -429,7 +429,7 @@ class SwarmManager(DockerBaseClass):
|
|||
self.client.leave_swarm(force=self.parameters.force)
|
||||
except APIError as exc:
|
||||
self.client.fail(msg="This node can not leave the Swarm Cluster: %s" % to_native(exc))
|
||||
self.results['actions'].append("Node has leaved the swarm cluster")
|
||||
self.results['actions'].append("Node has left the swarm cluster")
|
||||
self.results['changed'] = True
|
||||
|
||||
def __get_node_info(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue