Commit graph

17888 commits

Author SHA1 Message Date
Toshio Kuratomi 26078418e9 Update submodule ref (doc change) 2016-07-15 06:37:31 -07:00
Toshio Kuratomi de3f013152 If we can't squash for any reason, then simply do not optimize the items loop.
Also add more squashing testcases

Fixes #15649
2016-05-12 11:37:53 -07:00
Toshio Kuratomi c4388285fa Update changelog for fix to status in urls.py 2016-05-09 09:38:48 -07:00
Toshio Kuratomi 6f23635cce Fix traceback in fetch_urls when status code is in info as well as the error. 2016-05-09 09:34:20 -07:00
Brian Coca 772eafd61a Revert "add ignore_errors to fix keyword arg warning" (#15670) 2016-04-29 13:10:21 -04:00
Pete Lumbis a724bcc5f3 add ignore_errors to fix keyword arg warning (#15668)
When running an ad hoc command with --tree that fails a keyword argument error is produced.

```shell
ansible-server$ ansible server1 -a "/bin/false" -t temp
server1 | FAILED | rc=1 >>


 [WARNING]: Failure when attempting to use callback plugin (</Library/Python/2.7/site-packages/ansible/plugins/callback/tree.CallbackModule object at 0x10f6f1dd0>): v2_runner_on_failed() got an unexpected keyword argument 'ignore_errors'
```
Seems that the `v2_runner_on_failed()` call is missing "ignore_errors=False" parameter.  Without this fix --tree will not work when ad hoc commands fail.
2016-04-29 13:09:11 -04:00
Toshio Kuratomi 51087d2e63 Add uri fixes to the changelog 2016-04-26 10:36:17 -07:00
Toshio Kuratomi 909216959a Update core submodule ref to pull in the fix for uri 2016-04-26 10:34:24 -07:00
Olivier GROSJEANNE 1589239e6a HTTPError can also function as a non-exceptional file-like return value (#14915)
* HTTPError can also function as a non-exceptional file-like return value (the same thing that urlopen() returns)

* HTTPError - adding response to info dictionnary

* HTTPError - adding response to info dictionnary

* HTTPError - adding body response to info dictionnary
2016-04-26 10:30:56 -07:00
Bjørnar Ness da4d423926 enable mysql connection via unix socket 2016-04-20 08:15:53 -07:00
mvgrimes 0fe8161331 Dynamically add ssl key to the mysql config hash iff needed
Just including the `ssl` key in the config for MySQLdb.connect, causes it to check for the existence of SSL support. This patch only adds the key if one of the ssl configuration options is included.
2016-04-20 08:15:53 -07:00
Brian Coca 9cf43ce17f fix boto.ec2 import as per #11755 2016-04-20 10:31:55 -04:00
Jonathon Klobucar b150f18382 Fix for serial when percent amount is less than one host (#15396)
Ansible when there was a percentage that was calculated to be less than
1.0 would run all hosts as the value for a rolling update.

The error is due to the fact that Python will round a
float that is under 1.0 to 0, which will trigger the case of
0 hosts. The 0 host case tells ansible to run all hosts.

The fix will see if the percentage calculation after int
conversion is 0 and will else to 1 host.
2016-04-20 10:31:55 -04:00
James Cammarata 24d9e5e0b4 New release v2.0.2.0-1 2016-04-19 17:25:32 -04:00
Robin Roth cd101967d8 fix tests for SLES and CoreOS
* include #15230
2016-04-18 23:26:53 -07:00
James Cammarata 0df4bfe063 Don't override the http status code when successful in urls.py 2016-04-18 13:04:16 -04:00
Matt Martz 9fe10860a6 Don't pass context to urlopen, instead add it to the handlers. Fixes https://github.com/ansible/ansible-modules-core/issues/3437 2016-04-15 17:33:45 -04:00
James Cammarata 26209342a2 New release v2.0.2.0-0.4.rc4 2016-04-12 10:42:39 -04:00
James Cammarata 62e4920896 Also fix intermittent ssh error using pty's for paramiko
Related to #13876
2016-04-12 08:35:28 -04:00
James Cammarata 94a8064485 Don't use -tt for ssh connections when sudoable=False
Due to an apparent race condition while using pty's on a heavily loaded
system, rarely a request to create a temp directory returns an empty
string rather than the newly created path, causing an error. Disabling
forced pty's appears to resolve the issue, so this patch modifies the
mkdtemp remote call not use -tt as we're not escalating privileges and
thus no pty is required.

Fixes #13876
2016-04-11 23:22:26 -04:00
Toshio Kuratomi 94ff39c878 Update changelog for the two new bugfixes 2016-04-08 11:47:18 -07:00
Toshio Kuratomi 7bfa2fef17 Update core submodule ref for uri cherry-pick (dict_header defaults to None instead of dict) 2016-04-08 11:43:05 -07:00
James Cammarata 9bd8fe3f95 Fix free strategy, which was incorrectly using _wait_on_pending_results
Broken in 210cf06d
2016-04-08 11:27:00 -07:00
nitzmahone ec2ee01de3 ensure test_win_user fails on bogus error
We weren't previously checking the error message- it failed as expected, but for the wrong reason.
2016-04-07 18:30:50 -07:00
nitzmahone 50f8c3507b update core submodule ref for win_user bugfixes 2016-04-07 18:30:05 -07:00
nitzmahone 151e02e53d update extras submodule ref for win_updates fixes 2016-04-07 17:41:08 -07:00
James Cammarata 388ee24311 New release v2.0.2.0-0.3.rc3 2016-04-06 15:34:53 -04:00
James Cammarata 7331922c80 Make sure VariableManager has a view of HostVars
Fixes #15261
2016-04-05 12:19:04 -04:00
Toshio Kuratomi 2950e5a75b Update changelog to reflect lxc_container fix 2016-04-02 01:46:53 -07:00
Toshio Kuratomi 9e8843af8d Update submodule refs 2016-04-02 01:43:44 -07:00
James Cammarata 2d6a0d24b8 New release v2.0.2.0-0.2.rc2 2016-04-01 10:09:32 -04:00
James Cammarata 9b7f466116 Updating the test_script integration tests with the version from devel 2016-03-31 16:00:33 -04:00
James Cammarata 4e12168b3c Fix logic error in script action plug related to use of shell.exists 2016-03-31 15:18:48 -04:00
Rene Moser 2f2e2c4611 cloudstack: fix bug, api_secret always None
In case if api args are used, api_secret is None in every cloudstack module.
2016-03-31 10:09:59 +02:00
Malte Krupa 5c7474d96e Add '--skip-tags' to ansible-pull 2016-03-30 18:56:49 -07:00
Brian Coca 4e8da8ed09 moved 'path exists' function to shell
now it will work with powershell/winrm
2016-03-30 18:56:33 -07:00
Toshio Kuratomi 918c11d18d Use _connection instead of _play_context for information about the connection
If we're not delegating then we change _connection into a local
connection midway through the file but we don't change
_play_context.connection (no need to alter that).  When we later check
it in process_remote() we need to know the actual connection, not the
connection that we thought we were going to use at the start of run().
So we have to use _connection.transport in process_remote().  The rest
of the places could use either one (because we have not yet changed to
a local connection) but we go ahead and switch those to
_connection.transport as well to avoid confusion in the future.

Fixes https://github.com/ansible/ansible-modules-core/issues/3136
2016-03-30 13:36:37 -07:00
James Cammarata a432be899e Only combine vars in include_vars if both are mappings
Fixes #15184
2016-03-30 11:15:57 -04:00
James Cammarata d68b463089 New unit tests for #13630 fix 2016-03-28 16:52:19 -04:00
James Cammarata 4b1aad64b8 Take previous jinja2 blocks into account in splitter when we see quotes
Previously, split_args() was not taking print/block/comment depth into account
when splitting things, meaning that if there was a quote character inside an
un-quoted variable (ie. {{ foo | some_filter(' ') }}), it was incorrectly
splitting on the quotes instead of continuing to append to the previous param.

Fixes #13630
2016-03-28 16:52:15 -04:00
Toshio Kuratomi 9ad418ae6d have to always run dwim() on the path to get the full absolute path.
Fixes #14944
2016-03-25 12:50:54 -07:00
James Cammarata 73992224f4 Fix --start-at-task which was broken by the setup task revamp
Fixes #15010
2016-03-25 11:32:10 -04:00
James Cammarata 13cb986873 Removing tests related to filename param (which is not in 2.0) 2016-03-25 07:58:01 -04:00
root e3d14124cb Modified files to use single quotes rather than double for file path. Powershell does not process $ variables in strings that are single quoted. Powershell DOES process $ variables that are in double quoted strings.
Using single quotes enables ansible to  handle file paths that contain folders that start with $. (i.e. C:/Users/$admin/...)
2016-03-25 00:15:54 -07:00
nitzmahone 41892b3fc8 update core submodule ref for win_stat bugfix 2016-03-24 20:56:45 -07:00
James Cammarata b7ccc8cfa1 Fix bugs related to task_includes and dep chain inheritance
* Fix the way task_include fields were created and copied
* Have blocks get_dep_chain() look at task_include's blocks for proper
  dep chain inheritance
* Fix the way task_include fields are copied to prevent a recursive
  degradation

Fixes #14460
2016-03-24 21:00:25 -04:00
Toshio Kuratomi e17ba96589 Should be errors=strict since we don't want to end up matching hosts like '???' 2016-03-24 09:26:18 -07:00
Toshio Kuratomi 2d0badc5ef Fix using non-ascii for inventory hostname patterns with the CLI. 2016-03-24 09:23:13 -07:00
Toshio Kuratomi 69377a2c85 nv_por is needed later in the file
Fixes #14654
2016-03-24 07:08:35 -07:00
James Cammarata d6f86f911c Adding CHANGELOG updates for 2.0.2 rc1 2016-03-23 16:22:46 -04:00