Commit graph

118 commits

Author SHA1 Message Date
Geoff Wright
e7d3d6c673 Fixes: #3232. Use of datetime consistent with module_utils/basic.py 2016-03-12 10:15:03 +00:00
Matt Davis
4f5d02f08f Merge pull request #2463 from nitzmahone/async_status_error_masking
mark failed async_status as finished
2016-03-09 22:51:28 +00:00
Toshio Kuratomi
caf4b759b9 Specify types in argument_spec instead of code so that checking type vs default value does not trigger 2016-02-28 22:31:43 -08:00
Brian Coca
649689bfb6 documented new verbosity option 2016-02-18 07:01:53 -08:00
Toshio Kuratomi
e1ec52e365 Re-add version_added to fireball docs 2016-02-04 07:37:38 -08:00
Toshio Kuratomi
2c3a85902c Fireball was removed in 2.0 (action plugin is gone).
This commit removes the helper module that wouldn't work without the
action module and tells users what to use instead.
2016-02-04 07:35:46 -08:00
Brian Coca
21f6390fa3 clarified set_fact function 2015-11-17 10:05:15 -08:00
nitzmahone
077f8131aa mark failed async_status as finished
Running async_status in an "until: result.finished" loop will mask a module failure (eg, traceback) with a
template failure, because the fail dict doesn't include "finished" (eg, you'll see "ERROR! The conditional check 'bogus_out.finished' failed. The error was: ERROR! error while evaluating conditional: bogus_out.finished ({% if bogus_out.finished %} True {% else %} False {% endif %}"). Because the failure dict still includes "failed: true",
this change has no effect on stoppage/failure reporting, it just prevents the common usage pattern from masking the underlying error message.
2015-11-12 16:19:52 -08:00
Lars Larsson
fa2ea225dd total_seconds not present on timedelta on python2.6 2015-11-03 11:54:31 +01:00
Brian Coca
d192e2c3e3 code cleanup and reoorg, renamed vars and functions to actual purpose
reneabled logging of steps
2015-10-31 21:35:48 -04:00
Toshio Kuratomi
0fa4c5fc2b Merge pull request #2285 from evanccnyc/devel
add documentation for include_vars and JSON
2015-10-30 07:47:01 -07:00
Toshio Kuratomi
43cecd3cee Use select in wait_for so that we don't get stuck in cornercases:
* reading from a socket that gave some data we weren't looking for and
  then closed.
* read from a socket that stays open and never sends data.
* reading from a socket that sends data but not the data we're looking
  for.

Fixes #2051
2015-10-28 09:05:17 -07:00
Evan Carter
7b9c326ca6 add documentation stating that JSON files can be loaded with include_vars 2015-10-15 15:06:32 -04:00
James Cammarata
79d18981c7 A few bug fixes and tweaks for the accelerate module 2015-10-02 00:48:43 -04:00
Toshio Kuratomi
a580acc12a No longer check for tmp_path being sent as we don't use it here anyway 2015-09-24 13:28:28 -07:00
Brian Coca
697307f88c Merge pull request #1670 from mikeputnam/issue-1643-gpl-header
Add missing GPLv3 License header
2015-07-30 14:39:44 -04:00
Brian Coca
008caa1ff7 Merge pull request #591 from d3rp/wait_for
Fix 'wait_for' doesn't work with ipv6only host
2015-07-24 18:38:50 -04:00
Mike Putnam
6c0e264806 Add missing GPLv3 License header
Fixes #1643
2015-07-03 22:57:53 -05:00
Greg DeKoenigsberg
2a5f0bde87 Proper author info for all remaining modules 2015-06-15 15:53:30 -04:00
Brian Coca
7810a898e8 sleep when only doing a time delay to avoid cpu churn 2015-05-26 10:58:39 -04:00
Brian Coca
d501f50c7b fixed try/except/finally to be 2.4 compatible 2015-05-13 15:52:37 -04:00
Toshio Kuratomi
60a66a544d Several cleanups to many modules:
* Fix docs to specify when python2.6+ is required (due to a library
  dep).  This helps us know when it is okay to use python2.6+ syntax in
  the file.
* remove BabyJson returns.  See #1211  This commit fixes all but the
  openstack modules.
* Use if __name__ == '__main__' to only run the main part of the module
  if the module is run as a program.  This allows for the potential to
  unittest the code later.
2015-05-11 12:15:53 -07:00
Nathaniel
5aae7f3e51 Update set_fact.py
Context: I recently discovered that when setting a fact, key=value pairs and complex arguments differ in how the fact is stored. For example, when attempting to use complex arguments using key=values, the result can be stored as a unicode string as opposed to an object/list/etc.

I'm hoping the above example update will better demonstrate to and instruct people to use complex arguments instead of key=value pairs in certain situations.
2015-05-09 15:51:17 -05:00
Brian Coca
1d6d3fece7 added docs to show wait_for default timeout settings
Fixes #400
2015-04-06 20:41:57 -04:00
Brian Coca
cbc1655ba0 Merge pull request #784 from bcoca/wait_for_docs
added missing docs on connection_timeout for wait_for
2015-02-25 10:39:37 -05:00
Gerard Lynch
9967aa6681 wait_for: updated docs, must be resolvable hostname, updated example 2015-02-23 20:10:02 +00:00
Brian Coca
3100236628 added missing docs on connection_timeout for wait_for 2015-02-13 10:02:05 -05:00
Andrey Trubachev
10e48d18f7 Fix python-2.4 compatibility 2015-01-05 21:05:01 +03:00
Andrey Trubachev
659c6d3a7e Fix 'wait_for' doesn't work with ipv6only host 2015-01-03 10:32:27 +03:00
Brian Coca
5af9928996 let implied type do the spliting 2014-11-11 15:34:55 -05:00
Brian Coca
d67ac4d33e minor fixes to wait_for to avoid tracebacks as per ansible core issue #9244 2014-11-11 15:09:42 -05:00
Brian Coca
c6dcd38355 added missing init.py for utilities modules 2014-11-05 15:49:39 -05:00
Michael DeHaan
cec519f70e Move internal category to utilities to remove one more category from the left hand menu, keeping it concise. 2014-11-04 17:47:07 -05:00
Michael DeHaan
0be8798858 Renames. 2014-11-04 17:29:56 -05:00
Ashish Ranjan
eae233efe4 fields in /proc/net/tcp* are not always delimited by single space 2014-10-24 14:48:26 +00:00
Michael DeHaan
385a037cd6 package files 2014-09-26 11:05:47 -04:00
Michael DeHaan
c8e1a2077e file extensions! 2014-09-26 10:37:56 -04:00
Michael DeHaan
417309a626 Restructuring. 2014-09-26 10:13:26 -04:00
Michael DeHaan
73123b69fa Move modules into subdirectory. 2014-09-26 09:23:50 -04:00
James Cammarata
ec64538833 Convert boolean strings from set_fact to proper boolean values
Also adds integration tests for booleanification of strings

Fixes #8629
2014-09-10 09:56:39 -05:00
James Cammarata
6e7773e9b8 Removing unused name param for wait_for tcp draining classes
Also updates the version_added and other references to the version
in which the connection draining functionality was added.
2014-08-26 20:36:11 -05:00
Greg Swift
7bc23ea007 Extend wait_for module to support draining of active tcp connections 2014-08-21 16:15:59 -05:00
Matt Martz
28939f49f7 Need to check e.errno instead of os.errno. Fixes #8548 2014-08-11 12:26:52 -05:00
James Cammarata
1cc9b6d90b Break out of loop for sockets in wait_for when there's no data to read 2014-07-14 14:14:13 -05:00
James Cammarata
1abf10a4f6 Merge branch 'wait-for-port-search-regex' of https://github.com/sivel/ansible into sivel-wait-for-port-search-regex 2014-07-14 13:16:11 -05:00
James Cammarata
35960ea192 Merge pull request #7374 from hfinucane/wait_for_pipes
Allow wait_for to wait on non-traditional files
2014-06-20 15:55:10 -05:00
Matt Martz
7ec52c9001 Allow search_regex to be used in wait_for with port 2014-06-02 07:17:01 -05:00
Brian Coca
bd95479777 corrected doc example, non existing fact to the 2 it had 'merged' 2014-05-29 22:44:33 -04:00
Henry Finucane
898ebf7358 Fail fast in the presence of permissions issues 2014-05-13 09:43:47 -07:00
Henry Finucane
34bf59ac4c Allow wait_for to wait on non-traditional files
Use os.path.exists to check for file existence, instead of "can we open
this file for reading".

Fixes #6710
2014-05-12 23:21:55 -07:00