{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1188","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1188/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1188/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1188/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/1188","id":70272658,"number":1188,"title":"Starting a container fails with \"TypeError: argument of type 'NoneType' is not iterable\"","user":{"login":"soupdiver","id":800562,"avatar_url":"https://avatars.githubusercontent.com/u/800562?v=3","gravatar_id":"","url":"https://api.github.com/users/soupdiver","html_url":"https://github.com/soupdiver","followers_url":"https://api.github.com/users/soupdiver/followers","following_url":"https://api.github.com/users/soupdiver/following{/other_user}","gists_url":"https://api.github.com/users/soupdiver/gists{/gist_id}","starred_url":"https://api.github.com/users/soupdiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupdiver/subscriptions","organizations_url":"https://api.github.com/users/soupdiver/orgs","repos_url":"https://api.github.com/users/soupdiver/repos","events_url":"https://api.github.com/users/soupdiver/events{/privacy}","received_events_url":"https://api.github.com/users/soupdiver/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/needs_info","name":"needs_info","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-23T00:55:14Z","updated_at":"2015-05-08T15:59:23Z","closed_at":null,"body":"My playbook:\r\n```yaml\r\n---\r\n- name: pull redis image\r\n  shell: \"docker pull redis:{{ hubot_redis_version }}\"\r\n\r\n- name: start redis container\r\n  docker:\r\n    image: \"redis:{{ hubot_redis_version }}\"\r\n    name: redis-hubot\r\n    state: running\r\n```\r\n\r\nwhere `hubot_redis_version` is `3.0`\r\n\r\nThis will result in:\r\n\r\n```bash\r\nPLAY [hubot] ******************************************************************\r\n\r\nGATHERING FACTS ***************************************************************\r\nok: [coconut]\r\n\r\nTASK: [hubot | pull redis image] **********************************************\r\nchanged: [coconut]\r\n\r\nTASK: [hubot | start redis container] *****************************************\r\nfailed: [coconut] => {\"failed\": true, \"parsed\": false}\r\nTraceback (most recent call last):\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1429750315.49-205659985739734/docker\", line 3104, in <module>\r\n    main()\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1429750315.49-205659985739734/docker\", line 1478, in main\r\n    started(manager, containers, count, name)\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1429750315.49-205659985739734/docker\", line 1327, in started\r\n    containers.refresh()\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1429750315.49-205659985739734/docker\", line 1288, in refresh\r\n    self.deployed = self.manager.get_deployed_containers()\r\n  File \"/home/ansible/.ansible/tmp/ansible-tmp-1429750315.49-205659985739734/docker\", line 1122, in get_deployed_containers\r\n    matches = name in i.get('Names', [])\r\nTypeError: argument of type 'NoneType' is not iterable\r\n```\r\n\r\nEnv:\r\n\r\n```bash\r\nfelix:ansible felix$ ansible --version\r\nansible 1.9.0.1\r\n```\r\n\r\n```bash\r\nansible@coconut:~$ docker -v\r\nDocker version 1.6.0, build 4749651\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/100280442","html_url":"https://github.com/ansible/ansible-modules-core/issues/1188#issuecomment-100280442","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1188","id":100280442,"user":{"login":"soupdiver","id":800562,"avatar_url":"https://avatars.githubusercontent.com/u/800562?v=3","gravatar_id":"","url":"https://api.github.com/users/soupdiver","html_url":"https://github.com/soupdiver","followers_url":"https://api.github.com/users/soupdiver/followers","following_url":"https://api.github.com/users/soupdiver/following{/other_user}","gists_url":"https://api.github.com/users/soupdiver/gists{/gist_id}","starred_url":"https://api.github.com/users/soupdiver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soupdiver/subscriptions","organizations_url":"https://api.github.com/users/soupdiver/orgs","repos_url":"https://api.github.com/users/soupdiver/repos","events_url":"https://api.github.com/users/soupdiver/events{/privacy}","received_events_url":"https://api.github.com/users/soupdiver/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T15:59:23Z","updated_at":"2015-05-08T15:59:23Z","body":"I tested with \r\n```\r\nfelix:~ felix$ ansible --version\r\nansible 1.9.1\r\n```\r\nand was able to start containers again. Looks good :)"}}