Brian Coca
45d070ba3a
reject extraneous data passed to mode
...
strictly permissions are allowed, file type info should not be passed in
alternate fixes #14771
9 years ago
Matt Clay
c4dfa888d1
Use to_bytes on filenames in filesystem calls.
9 years ago
夏恺(Xia Kai)
f4c27ef80a
remove main_q for simplicity.
...
main_q is not used anywhere in the codebase.
It is created in TaskQueueManager._initialize_processes, bundled with rslt_q
into TaskQueueManger._workers, later unwrapped in StrategyBase but not used.
This queue is closed in TaskQueueManger._cleanup_processes.
Historically, it is passed as a init parameter into WorkerProcess,
introduced in 62d7956
, but this behavior is changed in 120b9a7
.
Signed-off-by: 夏恺(Xia Kai) <xiaket@gmail.com>
9 years ago
Toshio Kuratomi
e562fe608f
Remember to use errors=strict since this is looking up a filename on the filesystem (ie it has to match exactly)
9 years ago
Toshio Kuratomi
f07ff69bd3
Make the source path into a byte string before passing to os.path
9 years ago
James Cammarata
89cc762970
Make sure test script fails on any error
9 years ago
Brian Coca
79e165dd5f
better task parsing errors
...
fixes #14790
9 years ago
Brian Coca
df1ee5a15b
fix issues with older yaml lib versions
...
also added missing json import and removed unused ones
9 years ago
James Cammarata
2fdcaa218f
Pulling in travis.yml from devel
9 years ago
Brian Coca
1e2bf19dbe
fixed str to to_str
9 years ago
Brian Coca
9f1fede968
more complete and informative errors
...
mostly templating issues now all return data templated and actual error
fixes #14781
9 years ago
Brian Coca
de0e9e34b7
tweak deprecation warnings display
9 years ago
Toshio Kuratomi
3ffb7027ad
Transform pathnames to bytes before passing on to os.path functions
9 years ago
Matt Martz
068e322610
Support SSL validation with redirect control for python versions without ssl context
9 years ago
Toshio Kuratomi
6ef188eec5
Remove debugging and fix the place where bytes are being handed to StringIO
9 years ago
Toshio Kuratomi
1d94e0f63b
more information
9 years ago
Toshio Kuratomi
ca41dbb603
Testing whether this fixes jenkins
9 years ago
James Cammarata
6ad5c0f4f6
Conditionally import StringIO in template so we only use io.StringIO on py3
9 years ago
James Cammarata
435924f3de
Fixing bug in setup related to StringIO fixes
9 years ago
James Cammarata
d5801d76e8
Changing location of reduce import to not use six.moves
9 years ago
James Cammarata
e36834bd52
Adding py3 stub for reduce from six.moves
9 years ago
chouseknecht
d0656f948d
Fix bug 14715: Galaxy CLI paging error
9 years ago
nitzmahone
a74e97fa31
don't lock file when calculating checksum
9 years ago
Brian Coca
3a91a4321e
added package to special 'squashable' fields
...
apt has it as alias, this should fix https://github.com/ansible/ansible-modules-core/issues/3145
9 years ago
Toshio Kuratomi
f75be95936
We are actually taking the repr of a string so we need separate to_bytes and repr calls
9 years ago
Toshio Kuratomi
924fff7c85
Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3
9 years ago
Toshio Kuratomi
f1b441e205
Fix mixing of bytes and str in module replacer (caused traceback on python3)
9 years ago
James Cammarata
6b1648f708
Mass update of test/ directory from devel
9 years ago
Brian Coca
43cd33888b
with_ loops always should want a list
9 years ago
Dag Wieers
f78caabeac
Avoid merging a dict and a AnsibleUnicode
...
This is the same fix we applied to v1.9 in PR #14565 , however it does not fix #14678 completely !
The dictionaries are not being merged as tey are on v1.9.
9 years ago
James Cammarata
a2080ad364
Rework the way ad-hoc filters inventory to match how cli/playbook does it
9 years ago
Brian Coca
2a6f2af697
make some options not mandatory to pass
...
this should simplify api calls
9 years ago
Matt Martz
ecdf07eebf
Add/improve tests for the uri module
9 years ago
Matt Martz
4655ab88b3
Add RedirectHandler class and factory function for controlling redirects in urllib2
9 years ago
James Cammarata
e88934e1d7
Tweak block integration tests to also test the free strategy
9 years ago
James Cammarata
5ee599f3ee
Removing .out file for integration tests and adding to .gitignore
9 years ago
James Cammarata
0e4ef296c0
Adding block integration tests
9 years ago
Toshio Kuratomi
f601d29ce2
Change url so that we don't test https in the tests for file perms
9 years ago
Toshio Kuratomi
e5debd37d5
Update to latest submodule refs
9 years ago
Toshio Kuratomi
890998d07e
Add integration test for #11821
9 years ago
Toshio Kuratomi
b12d2a55fb
Note vault fix
9 years ago
Toshio Kuratomi
20fb9f8e96
Catch ValueError as well because of El Capitan provoking a bug in python2's subprocess
...
Fixes #14895
9 years ago
Brian Coca
8141eacafc
ensure we use delegated vars on delegation
...
this prevents falling back to connection vars from the inventory_hostname
when matching connection var is not in delegated host.
9 years ago
James Cammarata
25bca5e59f
Make sure tuples returned by _get_item() are handled correctly in formatting
...
Fixes #14800
9 years ago
qqo
ba46b15826
fix TypeError: coercing to Unicode: need string or buffer, AnsibleParserError found
9 years ago
Dag Wieers
d011bbf8f2
Fix the color when unreachable in default cb plugin
...
The dedicated color for unreachable errors was not being used in the default cb plugin.
This corrects the color.
9 years ago
Brian Coca
45317ec205
fix lsb fact gathering
...
was erroring out when rc !=0 also fixed redundant paths
fixes #14965
9 years ago
Daniel Kempkens
ca35822aaa
Check return value of get_distribution()
...
On none-Linux systems `get_distribution()` returns `None`, which fails in `fetch_url`, because the return value of `get_distribution()` is not checked before calling `lower()` on the result.
9 years ago
Toshio Kuratomi
2c5468d270
Document the issue with modules being created world-readable on the client in certain circumstances
9 years ago
Brian Coca
ed4cf3d54b
don't raise exceptoins on bad hosts files
...
fixes #14969
9 years ago