mirror of https://github.com/ansible/ansible.git
Mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
0ce43d6e3c
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. |
11 years ago | |
---|---|---|
cloud | 11 years ago | |
commands | 11 years ago | |
database | 11 years ago | |
files | 11 years ago | |
internal | 11 years ago | |
inventory | 11 years ago | |
messaging | 11 years ago | |
monitoring | 11 years ago | |
net_infrastructure | 11 years ago | |
network | 11 years ago | |
notification | 11 years ago | |
packaging | 11 years ago | |
source_control | 11 years ago | |
system | 11 years ago | |
utilities | 11 years ago | |
web_infrastructure | 11 years ago |