ansible/lib/ansible
Brian Harring 31061213fa Fix inconsistency in hostvars access.
Previously, hostvars would only expose a keys() list of hosts that had
been seen yet- however you could explicitly access the host if you knew
the name, and get the content that way.  This precludes template code
from being able to safely access information about other hosts if any
limiters/tags were in use.

Additionally, the object was inconsistent for hostvars['myhost'] access
and [x[1] for x in hostvars.items() if x[0] == 'myhost'] access; this is
due to the original derivation from the dict object.  .items() would be
handled by dict.items(), using the passed in setup_cache values without
using the actual lookup content.

This patch rebases the class implementation to a py2.6 dictmixin, fixing
those issues and restoring behaviour to match what the docs claim.
2013-08-19 23:57:08 -04:00
..
callback_plugins Renamed on_no_hosts_matched/on_no_hosts_remaining to correct names in noop callback, added methods to callback plugin examples. 2013-06-09 12:19:07 -04:00
inventory Minor fix to ipv6 detection for inventory with -i 2013-08-19 15:27:21 -05:00
playbook Fixing a small bug with the new role dependency feature 2013-08-17 00:06:24 -05:00
runner Fix inconsistency in hostvars access. 2013-08-19 23:57:08 -04:00
utils Fix some typos discovered during casual reading 2013-08-11 18:41:23 +05:30
__init__.py Version bump and assorted things to start new development version. 2013-06-10 15:34:52 -04:00
callbacks.py These fields are booleans. 2013-08-10 18:16:01 -04:00
color.py These fields are booleans. 2013-08-10 18:16:01 -04:00
constants.py Enable error_on_undefined_vars by default 2013-08-15 09:28:34 -05:00
errors.py Introduce exception AnsibleFilterError and use it in Jinja filters. Ignore this exception when trying to find the name of a task for display (callback) purpose. 2013-07-07 19:18:32 +02:00
module_common.py Merge pull request #3706 from lorin/sudo_user_breakage 2013-08-01 17:15:26 -07:00