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 | |
---|---|---|
.. | ||
cloudformation | 11 years ago | |
digital_ocean | 11 years ago | |
digital_ocean_domain | 11 years ago | |
digital_ocean_sshkey | 11 years ago | |
docker | 11 years ago | |
docker_image | 11 years ago | |
ec2 | 11 years ago | |
ec2_ami | 11 years ago | |
ec2_ami_search | 11 years ago | |
ec2_asg | 11 years ago | |
ec2_eip | 11 years ago | |
ec2_elb | 11 years ago | |
ec2_elb_lb | 11 years ago | |
ec2_facts | 11 years ago | |
ec2_group | 11 years ago | |
ec2_key | 11 years ago | |
ec2_lc | 11 years ago | |
ec2_metric_alarm | 11 years ago | |
ec2_scaling_policy | 11 years ago | |
ec2_snapshot | 11 years ago | |
ec2_tag | 11 years ago | |
ec2_vol | 11 years ago | |
ec2_vpc | 11 years ago | |
elasticache | 11 years ago | |
gc_storage | 11 years ago | |
gce | 11 years ago | |
gce_lb | 11 years ago | |
gce_net | 11 years ago | |
gce_pd | 11 years ago | |
glance_image | ||
keystone_user | 11 years ago | |
linode | ||
nova_compute | 11 years ago | |
nova_keypair | 11 years ago | |
ovirt | ||
quantum_floating_ip | 11 years ago | |
quantum_floating_ip_associate | ||
quantum_network | ||
quantum_router | ||
quantum_router_gateway | ||
quantum_router_interface | ||
quantum_subnet | 11 years ago | |
rax | 11 years ago | |
rax_cbs | 11 years ago | |
rax_cbs_attachments | 11 years ago | |
rax_clb | 11 years ago | |
rax_clb_nodes | 11 years ago | |
rax_dns | 11 years ago | |
rax_dns_record | 11 years ago | |
rax_facts | 11 years ago | |
rax_files | 11 years ago | |
rax_files_objects | 11 years ago | |
rax_identity | 11 years ago | |
rax_keypair | 11 years ago | |
rax_network | 11 years ago | |
rax_queue | 11 years ago | |
rds | 11 years ago | |
rds_param_group | ||
rds_subnet_group | ||
route53 | 11 years ago | |
s3 | 11 years ago | |
virt | 11 years ago |