Name |
Last commit
|
Last update |
---|---|---|
.. | ||
cloud | ||
commands | ||
database | ||
files | ||
internal | ||
inventory | ||
messaging | ||
monitoring | ||
net_infrastructure | ||
network | ||
notification | ||
packaging | ||
source_control | ||
system | ||
utilities | ||
web_infrastructure |
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.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
cloud | Loading commit data... | |
commands | Loading commit data... | |
database | Loading commit data... | |
files | Loading commit data... | |
internal | Loading commit data... | |
inventory | Loading commit data... | |
messaging | Loading commit data... | |
monitoring | Loading commit data... | |
net_infrastructure | Loading commit data... | |
network | Loading commit data... | |
notification | Loading commit data... | |
packaging | Loading commit data... | |
source_control | Loading commit data... | |
system | Loading commit data... | |
utilities | Loading commit data... | |
web_infrastructure | Loading commit data... |