3a2688e1e500f0bbb06bbd31af3fbdd92c372494
This is repeated 6 times in different tests, with slight minor variations. Let's factor it out, for clarity. While at it, simplify the code: instead of more complex parsing of "docker swarm init|update --autolock" output (1) and checking if the key is also present in "docker swarm unlock-key" output (2), get the key from (2) and check it is present in (1). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 24cbb9897193894f4716583d1861091ab2fa1ae2) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 6ec991ec8371bdba94480c587eea6ea24f3e9d43 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%