ansible/lib/ansible
Feanil Patel 0abcebf1e4 Don't convert numbers and booleans to strings.
Before this change if a variable was of type int or bool and the variable was referenced
by another variable, the type would change to string.

eg. defaults/main.yml
```
PORT: 4567
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  port: "{{ PORT }}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the port would get represented in the output as a
string instead of as a number, but secrets would get represented as a dictionary.  This is
a mis-match in behaviour where some "types" are retained and others are not.  This change
should fix the issue.

Update template test to also test var retainment.

Make the template changes in v2.
Update to only short-circuit for booleans and numbers.

Added an entry to the changelog.
2015-04-11 12:03:42 -04:00
..
cache Reverse the error messages from jsonfile get and set 2015-04-10 04:09:50 -07:00
callback_plugins
inventory Merge pull request #8936 from srvg/inventoryscript_onlychildren 2015-03-05 17:11:04 -05:00
module_utils backup_local now only tries to back up exising files, returns '' otherwise 2015-04-06 23:37:32 -04:00
modules updated submodule refs 2015-04-08 03:18:13 -04:00
playbook converted error on play var initialization into warning with more information 2015-03-31 23:07:03 -04:00
runner Remove winrm connection cache (only useful when running against one host). Also fixes #10391. 2015-04-09 13:45:21 -04:00
utils Don't convert numbers and booleans to strings. 2015-04-11 12:03:42 -04:00
__init__.py Updating version to contain the full major/release 2015-04-06 18:30:38 -05:00
callbacks.py Use to_bytes instead of .encode(). Fixes the fact that errors is a positional argument, not a kw arg in .encode() 2015-03-04 11:07:00 -08:00
color.py
constants.py removed folding sudo/su to become logic from constants as it is already present downstream in playbook/play/tasks 2015-03-27 08:45:04 -04:00
errors.py
module_common.py Correct typo 2015-03-26 12:09:36 -07:00