1. 21 Jan, 2014 5 commits
    • Fix an issue where git-pull fails with AttributeError · 761fe8cc
      As part of 94f3b9bf the code was changed to support dynamically adding localhost to the inventory. This change introduced an crash when run via ansible-pull
      
      ```
      Starting ansible-pull at 2014-01-20 23:09:57
      Traceback (most recent call last):
        File "/tmp/ansible/bin/ansible", line 157, in <module>
          (runner, results) = cli.run(options, args)
        File "/tmp/ansible/bin/ansible", line 82, in run
          hosts = inventory_manager.list_hosts(pattern)
        File "/tmp/ansible/lib/ansible/inventory/__init__.py", line 372, in list_hosts
          result = [ h.name for h in self.get_hosts(pattern) ]
        File "/tmp/ansible/lib/ansible/inventory/__init__.py", line 136, in get_hosts
          subset = self._get_hosts(self._subset)
        File "/tmp/ansible/lib/ansible/inventory/__init__.py", line 177, in _get_hosts
          that = self.__get_hosts(p)
        File "/tmp/ansible/lib/ansible/inventory/__init__.py", line 198, in __get_hosts
          hpat = self._hosts_in_unenumerated_pattern(name)
        File "/tmp/ansible/lib/ansible/inventory/__init__.py", line 275, in _hosts_in_unenumerated_pattern
          ungrouped.add_host(new_host)
      AttributeError: 'NoneType' object has no attribute 'add_host'
      ```
      
      The root cause is there is no group for the host to be added to. I fixed this case by creating the ungrouped group when it doesn't exist and then adding the host to the newly added group. This fixes the regression for me.
      Rob Smith committed
    • Merge pull request #5695 from kormoc/fix_git_check_hostkey_2 · 4b9127f0
      Fix case where there is a ~/.ssh/known_hosts file and the host key is only in /etc/ssh/ssh_known_hosts
      jctanner committed
    • When not finding a host in ~/.ssh/known_hosts, the return value is 0 if the host… · 953dc6b3
      When not finding a host in ~/.ssh/known_hosts, the return value is 0 if the host just is not found. We then never check the system host file in /etc. This fixes the code to check /etc on any failure, not just a bad return code.
      Rob Smith committed
    • Update CHANGELOG.md · 24f11168
      Michael DeHaan committed
    • Update CHANGELOG.md · f420af06
      Michael DeHaan committed
  2. 20 Jan, 2014 12 commits
  3. 19 Jan, 2014 2 commits
  4. 18 Jan, 2014 3 commits
  5. 17 Jan, 2014 9 commits
  6. 16 Jan, 2014 9 commits