Daniel Menet
0918416b83
substitute tilde and env vars before storing C.CACHE_PLUGIN_CONNECTION as instance attribute
10 years ago
Toshio Kuratomi
62979efa14
Finish up plugin porting to global display
...
Also remove display = display which does nothing
10 years ago
Toshio Kuratomi
2bd695ed42
Port cache plugins to global display
10 years ago
James Cammarata
86de1429e5
Cleaning up FIXMEs
10 years ago
Toshio Kuratomi
f34b55ac2b
Add python3-compat boilerplate to all .py files in lib/ansible
10 years ago
Toshio Kuratomi
0888d78b84
Cleanup some pyflakes warning (1 real error)
10 years ago
James Cammarata
0aa018337a
Fixing logic in json cache plugin get()
...
Fixes #12722
10 years ago
Toshio Kuratomi
baa309309d
Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version.
10 years ago
Brian Coca
f5227d494b
added missing cachefile and changed str(e) to to_bytes(e)
10 years ago
James Cammarata
426187489f
Add variable for format parameter
10 years ago
James Cammarata
5c5806d669
Fixing bugs related to jfonfile cache plugin
...
* corrupt/invalid file causes tracebacks
* incorrect initialization of display/_display in BaseCacheModule class
* tweaking the way errors in get() on jsonfile caches work, to raise
a proper AnsibleError in that situation so the playbook/task is stopped
Fixes #12708
10 years ago
Matthew Jones
7da478a4f4
Fix an issue where cache plugins weren't updated
...
The first call to persisting facts would work due to the assignment of a
MutableMapping calling __setitem__ but subsequent module fact data would
not be propogated to the fact cache plugins because update() doesn't
invoke __setitem__. This changes the behavior a little bit and ensures
set() is called on cache plugins.
10 years ago
Brian Coca
2463922306
fixed error reporting when missing redis import
10 years ago
Marius Gedminas
a32bf1ec18
Simplify FactCache.copy()
...
Also fix the bug (missing from six import iteritems) I introduced in
823677b490 .
10 years ago
Marius Gedminas
823677b490
Replace .iteritems() with six.iteritems()
...
Replace .iteritems() with six.iteritems() everywhere except in
module_utils (because there's no 'six' on the remote host). And except
in lib/ansible/galaxy/data/metadata_template.j2, because I'm not sure
six is available there.
10 years ago
James Cammarata
66ed397360
Fix redis fact_caching_timeout=0 bug
...
Fixes #12018
10 years ago
Marius Gedminas
0c6ce31f76
Use 'except ... as' syntax
...
This syntax works on Python 2.6 through 3.x. lib/ansible/module_utils
(and lib/ansible/modules) need to support Python 2.4, so I didn't touch
those.
10 years ago
Brian Coca
851ed45bbf
adding display to plugins and start moving debug to display
11 years ago
James Cammarata
d977da5b41
Fixing up fact_cache use in VariableManager
11 years ago
James Cammarata
932d1e57f7
Removing stray debugging print
11 years ago
James Cammarata
91c9bb96e3
Moving jsonfile cache plugin over and fixing #10883
...
Fixes #10883
11 years ago
Toshio Kuratomi
7dd3ef7b60
Older python-six from early RHEL and ubuntu do not have add_metaclass but do have with_metaclass
11 years ago
James Cammarata
0f1eb3cfc2
Better fix for serializing/deserializing cache plugins (v2)
11 years ago
James Cammarata
cd6d1f9221
Fix pickling errors with cache plugins (v2)
...
Fixes #10945
11 years ago
James Cammarata
ce3ef7f4c1
Making the switch to v2
11 years ago