Toshio Kuratomi
ee831e1071
Fix v2 for #10426
...
Note: In v1 we fix this by transforming into unicode just before we use
it (when we send it to jinja2) because jinja2 cannot handle non-ascii
characters in str.
In v2 our model is that all text values need to be stored as unicode
type internally. So we transform this to unicode when we read it from
the inventory file and save it into the internal dict instead.
2015-03-11 21:28:45 -07:00
James Cammarata
d0cfcdbc4d
Getting dynamic includes working a bit better on v2
2015-03-04 13:52:31 -06:00
James Cammarata
4d9bf37afa
Fixing some v2 inventory bugs
2015-01-28 13:21:52 -06:00
Toshio Kuratomi
a63e4c595f
Another place that needs to be json_dict_bytes_to_unicode
2015-01-26 22:04:51 -08:00
Toshio Kuratomi
0f6b87d33e
Revert "Fix import statements" -- those impotrt statements were right
...
before... something else is fishy
This reverts commit 8ab536fbf2
.
2015-01-26 22:01:52 -08:00
Toshio Kuratomi
8ab536fbf2
Fix import statements
2015-01-26 21:49:09 -08:00
Toshio Kuratomi
915d232d5f
jinja2 cannot handle byte strs with non-ascii. So we need to transform potential byte str into unicode type. This fix is for dynamic inventory.
...
Fixes #10007
2015-01-26 20:39:09 -08:00
James Cammarata
45212394ca
Adding in hostvars to v2 and getting more integration tests working
2015-01-22 22:50:21 -05:00
Brian Coca
6b3d0f4788
now captures returncode errors on inventory scripts
2015-01-15 13:38:25 -05:00
James Cammarata
62d79568be
Creating playbook executor and dependent classes
2014-12-29 10:46:47 -06:00
Toshio Kuratomi
b6c3670f8a
Mark some inventory methods that I'm thinking should go away (and their
...
replacements)
2014-12-09 13:52:47 -06:00
Toshio Kuratomi
bdf42104cd
Add some more comments from jimi-c and mpdehaan
2014-12-09 13:52:39 -06:00
Toshio Kuratomi
74f48ed79d
Inventory with docstrings and notes on how to change
2014-12-09 13:52:35 -06:00
Toshio Kuratomi
5fe5e2d3f4
Docstring for v2 inventory.subset
2014-10-20 11:43:27 -04:00
Toshio Kuratomi
eafa718be1
Remove inherit from object as it's no longer needed to determine new-style classes
2014-10-15 19:37:29 -04:00
Toshio Kuratomi
18f30b00ba
Add python3-compat boiler to all core files
2014-10-15 19:22:54 -04:00
Toshio Kuratomi
c9abd0fd58
Stub out Inventory class - we're going to draw heavily on the existing
...
inventory for implementation
2014-10-15 18:56:23 -04:00
Michael DeHaan
ccd559137f
add missing headers, rm the subtree of ansible/inventory as we wish to overhaul it.
2014-10-10 16:47:55 -04:00
Michael DeHaan
da01eef4db
Move v2 out of the package tree so it does not yet appear.
2014-10-02 13:47:25 -04:00