Commit Graph

6205 Commits

Author SHA1 Message Date
ca41dbb603 Testing whether this fixes jenkins 2016-03-21 12:55:37 -04:00
6ad5c0f4f6 Conditionally import StringIO in template so we only use io.StringIO on py3 2016-03-21 12:55:32 -04:00
435924f3de Fixing bug in setup related to StringIO fixes 2016-03-21 12:55:28 -04:00
d5801d76e8 Changing location of reduce import to not use six.moves 2016-03-21 12:55:23 -04:00
e36834bd52 Adding py3 stub for reduce from six.moves 2016-03-21 12:55:17 -04:00
d0656f948d Fix bug 14715: Galaxy CLI paging error 2016-03-21 12:54:40 -04:00
a74e97fa31 don't lock file when calculating checksum 2016-03-21 12:54:35 -04:00
3a91a4321e added package to special 'squashable' fields
apt has it as alias, this should fix https://github.com/ansible/ansible-modules-core/issues/3145
2016-03-21 12:54:25 -04:00
f75be95936 We are actually taking the repr of a string so we need separate to_bytes and repr calls 2016-03-21 12:51:51 -04:00
924fff7c85 Use io.StringIO and io.BytesIO instead of StringIO.StringIO for compat with py3 2016-03-21 12:51:43 -04:00
f1b441e205 Fix mixing of bytes and str in module replacer (caused traceback on python3) 2016-03-21 12:51:05 -04:00
43cd33888b with_ loops always should want a list 2016-03-21 12:37:54 -04:00
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.
2016-03-21 12:36:57 -04:00
a2080ad364 Rework the way ad-hoc filters inventory to match how cli/playbook does it 2016-03-21 12:36:51 -04:00
2a6f2af697 make some options not mandatory to pass
this should simplify api calls
2016-03-21 12:35:48 -04:00
4655ab88b3 Add RedirectHandler class and factory function for controlling redirects in urllib2 2016-03-21 12:35:13 -04:00
e5debd37d5 Update to latest submodule refs 2016-03-20 08:04:49 -07:00
20fb9f8e96 Catch ValueError as well because of El Capitan provoking a bug in python2's subprocess
Fixes #14895
2016-03-18 05:59:57 -07:00
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.
2016-03-17 14:34:28 -07:00
25bca5e59f Make sure tuples returned by _get_item() are handled correctly in formatting
Fixes #14800
2016-03-17 14:20:41 -04:00
qqo
ba46b15826 fix TypeError: coercing to Unicode: need string or buffer, AnsibleParserError found 2016-03-16 17:05:08 -07:00
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.
2016-03-16 17:02:31 -07:00
45317ec205 fix lsb fact gathering
was erroring out when rc !=0 also fixed redundant paths
fixes #14965
2016-03-16 17:00:50 -07:00
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.
2016-03-16 16:54:34 -07:00
ed4cf3d54b don't raise exceptoins on bad hosts files
fixes #14969
2016-03-14 20:14:16 -07:00
01115c7aec now item callback honors display_skipped_hosts
fixes #14956
2016-03-14 14:35:24 -04:00
0426b8e872 avoid creating extra tmp dirs we don't delete
fixes #14867
2016-03-10 10:45:44 -05:00
a75e2204fa Revert "Removing explicit setting of failed/failed_when"
This reverts commit 31f29a17d9.
2016-03-10 08:38:56 -05:00
31f29a17d9 Removing explicit setting of failed/failed_when 2016-03-10 07:42:58 -05:00
db038252b8 Fix blind override in failed_when
caused all task failures to be success
2016-03-09 23:58:51 -05:00
8187b23a6a update core submodule ref for async_status fix 2016-03-09 14:57:39 -08:00
b71fbb9364 Fixing up jsonify and adding unit tests 2016-03-09 15:19:39 -05:00
928a0863c2 corrected changed_when handling 2016-03-09 15:19:22 -05:00
500fc50a48 make all conditionals lists
this brings them to equivalence with when:
fixes #13905
2016-03-09 13:35:12 -05:00
a5b0b96b25 Fix misplaced paren. 2016-03-09 09:20:15 -05:00
d2345015db fix assemble to not pass extra args to copy/file
also small refactor to dedupe code
fixes https://github.com/ansible/ansible-modules-core/issues/3154
2016-03-08 09:28:26 -05:00
8b52e57529 Strip proc_1 before testing it. Fixes #14858 2016-03-08 09:28:15 -05:00
5f7b573d61 template also when only comments present 2016-03-06 10:50:53 -05:00
76bcb9d0e2 avoid basename on none 2016-03-06 09:12:45 -05:00
162b041925 make sure group_names is always sorted
this makes it consistent with previous ansilbe versions and other
paths that create the group_names variable
2016-03-04 13:13:30 -05:00
3ee95f2d33 dont erase previous nameservers in fact gathering
fixes #14806
2016-03-04 11:35:42 -05:00
b16a6a5309 don't tempalte register 2016-03-03 18:24:09 -05:00
bb008fb235 avoid issues when stdin is a closed file
this seems to happen when nohup is involved, so the check tty
does not get a chance to fail, it just works with pipes

fixes http://github.com/ansible/ansible-modules-core/issues/3166
2016-03-02 14:36:39 -08:00
db2ec71672 only do squash when 'squashable field' present 2016-03-01 15:11:57 -05:00
23151a2484 update core submodule ref 2016-02-29 16:22:09 -08:00
88af81eca8 added warning for when host file doesn't exist
fixes #14692
2016-02-29 16:18:48 -05:00
8b381ba248 Fixup boto3_conn as commit 6ea772931f broke commit 27398131cf 2016-02-29 16:03:47 -05:00
61e9841e08 normalize path components to unicode before combining or operating on them
Note that this will break if we deal with non-utf8 paths.  Fixing this
way because converting everythig to byte strings instead is a very
invasive task so it should be done as a specific feature to provide
support for non-utf8 paths at some point in the future (if needed).
2016-02-26 10:30:30 -08:00
8c26d6d4f6 Use a unicode format string so that we don't convert to byte strings
Fixes #14349
2016-02-26 10:30:20 -08:00
de7aaf93f3 fixed issue with failed item ignoring no_log
backported from devel
2016-02-25 17:10:35 -05:00