{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/13925","labels_url":"https://api.github.com/repos/ansible/ansible/issues/13925/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/13925/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/13925/events","html_url":"https://github.com/ansible/ansible/issues/13925","id":126966721,"number":13925,"title":"ansible-pull 2.0 lists multiple hosts","user":{"login":"opoplawski","id":814662,"avatar_url":"https://avatars.githubusercontent.com/u/814662?v=3","gravatar_id":"","url":"https://api.github.com/users/opoplawski","html_url":"https://github.com/opoplawski","followers_url":"https://api.github.com/users/opoplawski/followers","following_url":"https://api.github.com/users/opoplawski/following{/other_user}","gists_url":"https://api.github.com/users/opoplawski/gists{/gist_id}","starred_url":"https://api.github.com/users/opoplawski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opoplawski/subscriptions","organizations_url":"https://api.github.com/users/opoplawski/orgs","repos_url":"https://api.github.com/users/opoplawski/repos","events_url":"https://api.github.com/users/opoplawski/events{/privacy}","received_events_url":"https://api.github.com/users/opoplawski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-15T21:59:07Z","updated_at":"2016-01-15T22:10:44Z","closed_at":null,"body":"With ansible 1.9.4 my ansible-pull invocation:\r\n\r\n     /usr/bin/ansible-pull --url ssh://URL.git --key-file /root/.ssh/id_rsa_ansible -i inventory\r\n\r\nOnly outputs local hostname info as expected:\r\n\r\n     TASK: [common | Configure root] ***********************************************\r\n     ok: [vulcan7.cora.nwra.com]\r\n\r\nBut with 2.0.0.0.2:\r\n\r\n~~~~~\r\nTASK [setup] *******************************************************************\r\nok: [lroot.cora.nwra.com]\r\nok: [barry.cora.nwra.com]\r\nok: [ibis.cora.nwra.com]\r\nok: [moa.cora.nwra.com]\r\n.....\r\n~~~~~\r\n\r\nIt doesn't appear to be trying to connect to these hosts, but the output is problematic, and perhaps more is going wrong."},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/172108889","html_url":"https://github.com/ansible/ansible/issues/13925#issuecomment-172108889","issue_url":"https://api.github.com/repos/ansible/ansible/issues/13925","id":172108889,"user":{"login":"sivel","id":39340,"avatar_url":"https://avatars.githubusercontent.com/u/39340?v=3","gravatar_id":"","url":"https://api.github.com/users/sivel","html_url":"https://github.com/sivel","followers_url":"https://api.github.com/users/sivel/followers","following_url":"https://api.github.com/users/sivel/following{/other_user}","gists_url":"https://api.github.com/users/sivel/gists{/gist_id}","starred_url":"https://api.github.com/users/sivel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sivel/subscriptions","organizations_url":"https://api.github.com/users/sivel/orgs","repos_url":"https://api.github.com/users/sivel/repos","events_url":"https://api.github.com/users/sivel/events{/privacy}","received_events_url":"https://api.github.com/users/sivel/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T22:10:44Z","updated_at":"2016-01-15T22:10:44Z","body":"Something like this change may resolve the problem:\r\n\r\n```diff\r\ndiff --git a/lib/ansible/cli/pull.py b/lib/ansible/cli/pull.py\r\nindex 2571717..900e47a 100644\r\n--- a/lib/ansible/cli/pull.py\r\n+++ b/lib/ansible/cli/pull.py\r\n@@ -210,6 +210,8 @@ class PullCLI(CLI):\r\n             cmd += ' -t \"%s\"' % self.options.tags\r\n         if self.options.subset:\r\n             cmd += ' -l \"%s\"' % self.options.subset\r\n+        else:\r\n+            cmd += ' -l \"%s\"' % limit_opts\r\n \r\n         os.chdir(self.options.dest)\r\n \r\n\r\n```"}}