Joshua Conner
4defd9a15a
docker: exclude 'entrypoint' from comparing 'command' param with containers
...
The JSON the Docker API returns includes the container's ENTRYPOINT value (if it has one) with the 'Command' value. So instead of checking if `container['Command'] == module.params['command']`, we just check that `container['Command'].endswith(module.params['command'])` so the entrypoint won't affect a container being properly classified as matching the module params or not.
Also I refactored a super-long `if` statement into some temporary variables - I did it to help me figure out what was going wrong, and then it makes the code more readable so I kept it.
2014-04-17 16:10:53 -07:00
..
2014-04-04 08:00:56 -07:00
2014-03-11 15:42:45 -05:00
2014-03-11 15:43:59 -04:00
2014-03-11 15:43:59 -04:00
2014-04-17 16:10:53 -07:00
2014-04-01 15:03:20 -04:00
2014-04-15 18:16:34 -04:00
2014-04-09 21:19:12 +10:00
2014-03-15 19:16:14 +13:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 22:47:51 +10:00
2014-04-09 22:47:51 +10:00
2014-03-12 10:19:54 -05:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-09 21:19:12 +10:00
2014-04-16 12:21:32 -05:00
2014-04-11 18:23:53 -05:00
2014-03-28 22:47:46 +02:00
2014-03-11 22:39:42 -05:00
2014-04-08 10:00:30 -04:00
2014-04-08 10:03:56 -04:00
2014-04-08 10:05:57 -04:00
2014-02-03 13:00:40 -06:00
2014-04-08 10:25:44 -04:00
2014-02-07 20:47:57 -05:00
2014-03-11 13:45:04 -05:00
2014-03-11 13:41:50 -04:00
2013-12-03 20:21:16 +08:00
2014-04-08 10:32:53 -04:00
2014-02-03 13:00:40 -06:00
2014-02-03 13:00:40 -06:00
2014-02-03 13:00:40 -06:00
2014-02-03 13:00:40 -06:00
2014-02-03 13:00:40 -06:00
2014-04-08 10:32:53 -04:00
2014-04-03 17:16:24 -04:00
2014-04-04 13:02:49 -05:00
2014-04-04 13:02:49 -05:00
2014-04-03 17:16:24 -04:00
2014-04-06 19:17:13 -05:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-04 13:02:49 -05:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-03 17:16:24 -04:00
2014-04-02 17:34:33 -04:00
2014-03-02 19:36:07 -05:00
2014-03-02 19:36:07 -05:00
2014-03-11 18:19:03 -06:00
2014-03-28 22:47:46 +02:00
2014-03-31 11:05:31 +08:00