Shintaro Kaneko
372018dfce
Fix typo in lib/ansible/parsing/__init__.py ( #16761 )
10 years ago
Toshio Kuratomi
4203850d1a
Break apart a looped dependency to show a warning when parsing playbooks
...
Display a warning when a dict key is overwritten by pyyaml
Fixes #12888
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
Toshio Kuratomi
85abd61001
Add some more info to docstring
10 years ago
Brian Coca
a680ef66dd
fixed vault password file script execution
10 years ago
Toshio Kuratomi
dcdcd9e9c5
Move is_executable to the toplevel of basic.py so we can utilize it from other code
10 years ago
James Cammarata
95b371dd60
Use AnsibleFileNotFound instead of AnsibleParsingError when YAML files are not found
...
And update portions of code to expect the proper error.
Fixes #12512
10 years ago
Marius Gedminas
fc0dcc3947
Python 3: there's no basestring
...
Fixes one failing test.
Now technically a filename can be a bytestring, even on Python 3. I
hope this is unlikely for Ansible.
10 years ago
James Cammarata
4f30db8ca5
Check if path is /dev/null when checking if a file is in fact a file
10 years ago
James Cammarata
ff9f5d7dc8
Starting to add additional unit tests for VariableManager
...
Required some rewiring in inventory code to make sure we're using
the DataLoader class for some data file operations, which makes mocking
them much easier.
Also identified two corner cases not currently handled by the code, related
to inventory variable sources and which one "wins". Also noticed we weren't
properly merging variables from multiple group/host_var file locations
(inventory directory vs. playbook directory locations) so fixed as well.
10 years ago
Marius Gedminas
37be9539ff
Python 3: use six.text_type instead of unicode
...
Replace 'unicode' with six.text_type, everywhere but in module_utils.
10 years ago
Toshio Kuratomi
a3fd4817ef
Unicode and other fixes for vault
10 years ago
James Cammarata
eb381bd522
Add one more search path to path_dwim_relative
10 years ago
James Cammarata
d9833f227f
Make sure cached data from file loads isn't impacted by modifications
...
Fixes #11893
10 years ago
Toshio Kuratomi
e8452c864e
Restore the relative path handling portion of #11865
11 years ago
Brian Coca
b9433650d1
Revert "Path of group_vars and host_vars were getting the basedir added twice."
...
in view of simpler solution incomming from james
This reverts commit bae7a02be5 .
11 years ago
Toshio Kuratomi
bae7a02be5
Path of group_vars and host_vars were getting the basedir added twice.
...
Fix inventory so this won't happen and fix DataLoader so that it will
test relative paths relative to self._basedir
Fixes #11789
11 years ago
Brian Coca
b9050ecf18
fixed file lookup pathing in dwim functinos, now does specific paths and priorities and is commented
...
fixes #11672 as cwd is now not part of thos paths:
if full path is supplied, used that
11 years ago
Brian Coca
827b0443c8
now dataloader checkis that you get at least a valid string as a file name
11 years ago
James Cammarata
f40b66d841
Make sure the basedir is unicode
...
Fixes #10773
11 years ago
James Cammarata
bddadc9565
Fix bug in relative path determination
11 years ago
James Cammarata
ce3ef7f4c1
Making the switch to v2
11 years ago