Commit Graph

164 Commits (857e1d374bb09a59f09f3edb8500baa9a5c12d6a)

Author SHA1 Message Date
Matt Davis 18f710fe32 add JSON junk filter to async_wrapper (#5107) 8 years ago
Brian Coca 44c5b056cb 1st draft of include docs 8 years ago
Timothy Appnel b995358185 Fixes grammatical error in assert module example (#4972) 8 years ago
Timothy Appnel b87bf7c12d Adds docs for msg param in assert modules plus some other clean up (#4926) 8 years ago
Brian Coca efec744539 fixed incorrect example 8 years ago
Brian Coca da0dac3841 removed chdir / as it breaks tasks
fixes #17466
8 years ago
Monty Taylor 6ba5dc3188 Don't change to root dir in async_wrapper (#4779)
The daemonizing code here is taken from an ActiveState recipe, which
includes changing to / as a general best practice. While that is
normally true to allow for deleting the directory that the daemon
process started in, in this case it is not relevant as this is not
intended to be an actual long-running daemon.

Issue ansible/ansible#17466
8 years ago
Brian Coca 8e0cc9d370 updated include_role docs 8 years ago
Matt Clay 982c4557d2 Python 3 fixes for async_wrapper and async_status. (#4671) 8 years ago
Matt Clay 05c6707a32 Make async_wrapper ignore '_' as an argsfile. (#4678)
This provides support for passing additional positional parameters to async_wrapper.
Additional parameters will be used by the upcoming async support for Windows.
8 years ago
James Cammarata e7cf786851 Adding 'end_play' docs to meta module 8 years ago
Michael Scherer 6dd2bc2bff Make async work on python 3 (#4583)
Since dict no longer have a iteritems method, we have to
use six to support python 2 and 3.
8 years ago
James S. Martin 978716cf4c Shows messages for uncaught exceptions from called modules in async_wrapper output. (#4591) 8 years ago
Brian Coca 5d90b86d82 added docs for vars_from/defaults_from 8 years ago
Brian Coca c5e13ca0ed updated include_role docs to latest info 8 years ago
Brian Coca 6eab2b3d40 1st draft of include role docs 8 years ago
Brian Coca 89916af2a5 added meta as 'documentation' 8 years ago
Brian Coca d64060ace0 updated docs to reflect new feature 8 years ago
Brian Coca 53b4bd06f5 deprecated accelerate 8 years ago
Brian Coca 1c55fa9bda deprecated accelerate 8 years ago
Brian Coca 4c59da1cf4 documenting behaviour as clear as possible 8 years ago
James Cammarata 799159b8ee Removing erroneous import from async_status 8 years ago
James Cammarata b75f305079 Ensure async wrapper and status return consistent fields 8 years ago
James Cammarata 28567b6ea0 Merge pull request #4051 from Shrews/async_atomic_move
Use os.rename() in async_wrapper
8 years ago
Brian Coca 2373810034 updated set_fact docs with note about typing 8 years ago
David Shrewsbury 4e239f6ce0 Use os.rename() in async_wrapper
Because the async_status module will read from the same file that
the async_wrapper module is writing, it's possible that the file
may not be fully synced during a read, causing spurious failures.
Use a temp file to do an atomic operation on the file. We can't
use atomic_move() here as that doesn't work properly under async.

Also, let's not read concurrently from the same file the subprocess
is writing to. Instead, capture stdout/stderr via PIPE and write to
the file to avoid nasty races.
9 years ago
Brian Coca 77b4a0367c updated docs in pause to reflect 0 value behaviour 9 years ago
Stanislav Antic f0f5272f90 Fix wait_for on python < 2.6 (#3790) (#3973) 9 years ago
Brian Coca a1e6311197 reverted need for module utils imports 9 years ago
Brian Coca ab4ec24813 added missing import
readded raise
9 years ago
Brian Coca 4a0c483e09 exception ans sys.exit fixes 9 years ago
Toshio Kuratomi f9b28aaae3 Fix exception handling in async_wrapper 9 years ago
Brano Zarnovican 3456c24b96 Py2.4: SystemExit in async_wrapper is not an error - compatibility fix
Prior to Python 2.5, SystemExit was a subclass of Exception.
In Py2.4, this is causing extra error output on valid sys.exit(0).

(Toshio) Call sys.exit from inside of the SystemExit exception handler so py2.4 and py2.5+ behaviour matches
9 years ago
codemeup @ Work 1e0bb94ced Fixing compile time errors irt (, e => as e, print(), ocat now 0o not 0) exception handling for Python 3 (#3851)
* Fixing compile time errors irt a) exception handling for Python 3 in util, also: b) problem octal usage (fixed) and c) print json_dump -> print(json_dump(xyz) ... et al

* This code was not Python 2.4 compliant. Octal codes and exception handling is now working with Py 2.4, 2.6, & 3.5.

* Fixing formating (or rather reverting an non 2.4 compatible change). Works in compile & runtime checking.

* a) revert to use print sys.stderr not fail_json; b) fixed var name in exception

* Python 3 compatible print (print >>sys.stderr will generate a TypeError - now uses sys.stderr.write instead).
9 years ago
Dag Wieers c14d4755e6 Adapt module to use new module._name property (#3918)
This is in line with the change from ansible/ansible#16087
9 years ago
Mike Mars 5bb8cd7b06 a) fail_json uses kwargs, b) outside the fork, log instead of returning json on stdout. 9 years ago
Mike Mars 5101c2563b data type fix on format string 9 years ago
Mike Mars 6769529bb7 corrected the string formatting (format isn't in 2.4 and even in some later versions of python 2.x requires an index). Tested for both compile ***& runtime exceptions*** against 2.4, 2.6, and 3.5. 9 years ago
Mike Mars a76083d439 Missed umask octal conversion. 9 years ago
Mike Mars 529e75f981 Corrected string of text... 9 years ago
Mike Mars 82017ce298 1) Modified error handling to work with Python 2.4.
2) Fixed octal codes to fall in line with the ansible guide, "Porting Modules to Python 3"
3) updated the requirements.
All changes have been verified against Python 2.4, 2.6, & 3.5.
9 years ago
Mike Mars aa44ef55e7 Fixing compile time errors irt exception handling for Python 3. This particular diff fixes problems with Exception handling and the use/misues IRT Python 3 of octal numbers (InvalidToken exceptions). 9 years ago
Michael Scherer 3a20fc4d0c Fix wait_for to compile on python3 (#3722) 9 years ago
Michael Scherer 0e75317904 Do not use a tuple as argument for _create_connection (#3655) 9 years ago
vaupelt 67de0675c3 exclude_hosts does not work as expected with state=drained
There are established connections for a service. The service is bound to a ipv4-mapped ipv6 address. Wait_for wrongly waits for clients listed in exclude_hosts.
9 years ago
Toshio Kuratomi 6e5b09f3a8 Allow async to not need an args file since new-style modules have args embedded 9 years ago
Geoff Wright e7d3d6c673 Fixes: #3232. Use of datetime consistent with module_utils/basic.py 9 years ago
Matt Davis 4f5d02f08f Merge pull request #2463 from nitzmahone/async_status_error_masking
mark failed async_status as finished
9 years ago
Toshio Kuratomi caf4b759b9 Specify types in argument_spec instead of code so that checking type vs default value does not trigger 9 years ago
Brian Coca 649689bfb6 documented new verbosity option 9 years ago