Toshio Kuratomi
5034a2c702
Use six to import urlparse
2015-04-27 08:50:04 -07:00
Toshio Kuratomi
ed2e6fc8fa
Restore python3 fixups
2015-04-27 08:46:26 -07:00
Toshio Kuratomi
af2dff9cfb
Restore the python3-compat import __future__ and Exception as update.
2015-04-27 08:33:29 -07:00
James Cammarata
3aede800c5
Fixing winrm connection for v2
2015-04-27 00:28:43 -05:00
James Cammarata
8574d40b98
Initial work to make paramiko connections work under v2
2015-04-24 02:47:56 -04:00
James Cammarata
8c08f1b302
Updating connection plugins not yet updated in v2 to catch new code
2015-04-23 18:54:48 -05:00
James Cammarata
7669a0b275
Fixing some v2 bugs
2015-04-21 12:02:40 -05:00
James Cammarata
c58aaf72fc
Properly handle lack of stdout in results in v2
...
Fixes #10549
2015-04-21 09:48:56 -05:00
James Cammarata
d600c65095
Fix fetch action plugin in v2 to use the inventory_hostname in the dest dir
...
Fixes #10736
2015-04-20 11:16:35 -05:00
Michael Scherer
cd25e0fba0
Fix C.ANSIBLE_SSH_CONTROL_PATH string interpolation
...
Since C.ANSIBLE_SSH_CONTROL_PATH use the old format
( "%{directory}" ), we need to use the % operator
and not the format method, at least for python 2.
2015-04-19 00:06:50 -04:00
Toshio Kuratomi
01df51d2ae
Improve the API for connection plugins and update local and ssh to use it
2015-04-15 16:32:44 -07:00
Martin Chlumsky
45247eb4b3
Use abc for BaseCacheModule
2015-04-15 13:09:59 -04:00
James Cammarata
02e7385002
Filter tasks based on tags during iterator setup in v2
2015-04-15 01:17:02 -05:00
Toshio Kuratomi
460dc5e4db
Fix errors import
2015-04-14 19:56:17 -07:00
Toshio Kuratomi
719d01067e
Use six to assign metaclass for py2 and py3 compat
2015-04-14 19:43:23 -07:00
Toshio Kuratomi
c0f6712a37
Merge pull request #10719 from mscherer/fix_error_action_v2
...
Fix the filename in error message (pylint)
2015-04-14 19:22:19 -07:00
James Cammarata
9097274fe0
Fixing minimal callback for v2 to use the new api
2015-04-14 21:11:12 -05:00
Michael Scherer
2d9097e025
Fix the filename in error message (pylint)
2015-04-14 19:13:27 -04:00
Toshio Kuratomi
b4437ebd9a
Merge pull request #10713 from mscherer/fix_shell_plugin_import_v2
...
Rename the import, since the directory was renamed for v2
2015-04-14 15:17:55 -07:00
Toshio Kuratomi
8134ffeb1f
Merge pull request #10712 from mscherer/fix_v2_sh_plugin
...
Add missing imports. They are used later in mkdtmp, needed by action plu...
2015-04-14 15:17:19 -07:00
Michael Scherer
570f9db6bf
Add/correct missing imports for AnsibleError in v2 lookup plugins
2015-04-14 17:42:57 -04:00
Michael Scherer
674d1e72f6
Rename the import, since the directory was renamed for v2
2015-04-14 17:05:02 -04:00
Michael Scherer
c0c115317a
Add missing imports. They are used later in mkdtmp, needed by action plugins
2015-04-14 16:56:35 -04:00
Michael Scherer
1566a90fcd
Fix the exception name ( AnsibleParserError, not AnsibleParsingError )
2015-04-14 16:36:39 -04:00
Amandine Lee
164cfdfda4
Fix typo
2015-04-13 14:28:00 -07:00
Amandine Lee
08feaea077
Fix plugin imports with six
2015-04-13 14:04:31 -07:00
Toshio Kuratomi
7133d6361f
Merge pull request #10691 from ianzd/python3
...
Change how we're calling StringIO
2015-04-13 13:36:22 -07:00
Toshio Kuratomi
5dce745868
Merge pull request #10690 from momandine/print_function
...
Print function
2015-04-13 13:35:04 -07:00
Ian Dotson
d85f97ccfd
Change how we're calling StringIO since we're now importing the class rather than a module.
2015-04-13 16:31:16 -04:00
Amandine Lee
683c2913c5
Use print function
2015-04-13 13:28:27 -07:00
Amandine Lee
3d2a056ad4
Import futures including print
2015-04-13 13:28:01 -07:00
ian
1bdf0bb0d6
Several more changes to suport python3 syntax.
2015-04-13 15:37:25 -04:00
ian
6747f82547
Change exceptions to python3 syntax.
2015-04-13 12:35:20 -04:00
Brian Coca
d732c94ac2
a bunch of updates to connection info and related, to pass down passwords
...
also now options populate required fields in required order allowing play to override
added capture of debug in action plugins when stdout is not json
2015-04-06 22:35:02 -04:00
James Cammarata
e82ba723e2
Fixing multiple v2 bugs
2015-04-05 01:07:47 -05:00
Brian Coca
4bc79a746a
more fine tunnign on verbosity
2015-04-04 16:26:05 -04:00
Brian Coca
e719bf765d
switched to use cross platform os.sep, added diff output to copy
2015-04-03 09:20:19 -04:00
Brian Coca
0f8bc038ec
changed to use display as utils.warning doesnt exist in v2
2015-04-03 00:25:09 -04:00
Brian Coca
25f071b64c
fixed called to find plugin, transport is not needed as suffixes are passed
2015-04-03 00:01:32 -04:00
Brian Coca
7a81167b06
brought v2 find plugins up 2 date with v1, also added exception handling for whne there is a permissions issue
2015-04-02 23:59:48 -04:00
James Cammarata
469a1250b6
Moving new patch action plugin over to v2
2015-04-02 16:22:07 -05:00
James Cammarata
811a906332
Fixing the synchronize action plugin for v2
2015-04-02 11:54:45 -05:00
James Cammarata
0603b9c62c
Merge branch 'v2_fixing' into devel
...
Conflicts:
v2/ansible/playbook/helpers.py
2015-04-02 01:25:53 -05:00
James Cammarata
785c0c0c8c
V2 fixing bugs
2015-04-02 01:19:21 -05:00
Toshio Kuratomi
eb788dd8f6
Just move things around so that new_inventory doesn't interfere with testing
2015-03-31 12:58:00 -07:00
Toshio Kuratomi
43c1a97447
Various unicode and backslash escape cleanups
...
* Do backslash escape parsing in parse_kv() [was being done in the copy
module purely for newlines in the copy module's content param before]
* Make parse_kv always return unicode
* Add bandaid to transform args to unicode until we can fix things
calling parse_kv to always send it unicode.
* Make split_args deal with unicode internally. Warning, no bandaid for
things calling split_args without giving it unicode (shouldn't matter
as dealt with str internally before)
* Fix copy and unarchive action plugins to not use setdefaultencoding
* Remove escaping from copy (it was broken and made content into latin-1
sometimes). escaping is now in parse_kv.
* Expect that content is now a unicode string so transform to bytes just
before writing to the file.
* Add initial unittests for split_args and parse_kv. 4 failing
tests.because split_args is injecting extra newlines.
2015-03-30 19:19:34 -07:00
Toshio Kuratomi
1cc2135a0d
Fix no closed parens
2015-03-30 19:15:41 -07:00
Toshio Kuratomi
ce512e18f0
Remove fireball connection plugin. v2 will have accelerate but not fireball
2015-03-30 19:15:41 -07:00
James Cammarata
bda83fdf84
Fixing bug in v2 dynamic include code, pointed out by apollo13
2015-03-22 19:17:25 -05:00
Brian Coca
9d3a63945d
moved pipeline check to class var that was previouslly added
2015-03-21 00:48:38 -04:00