mirror of https://github.com/ansible/ansible.git
docker_swarm_service: use exact name match when finding services (#50665)
* docker_swarm_service: use exact name match when finding services The Docker API's filtering support allows filtering for substring matches which means that when we filter the list of running services we may accidentally match a service called "foobar" when looking for a service named "foo". Fix this by filtering the list of services returned from the Docker API so that name matches are exact. It is still worth passing the filter parameter to the Docker API because it reduces the number of results passed back which may be important for remote Docker connections. Closes 50654. * add changelog fragment for #50654pull/50811/head
parent
cde292cc43
commit
fd32760d7a
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- "docker_swarm_service - fix use of Docker API so that services are not detected as present if there is an existing service whose name is a substring of the desired service"
|
Loading…
Reference in New Issue