Commit Graph

17888 Commits (26078418e996ad84710577add67b77c07ea8fc4c)
 

Author SHA1 Message Date
Toshio Kuratomi 26078418e9 Update submodule ref (doc change) 8 years ago
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
9 years ago
Toshio Kuratomi c4388285fa Update changelog for fix to status in urls.py 9 years ago
Toshio Kuratomi 6f23635cce Fix traceback in fetch_urls when status code is in info as well as the error. 9 years ago
Brian Coca 772eafd61a Revert "add ignore_errors to fix keyword arg warning" (#15670) 9 years ago
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.
9 years ago
Toshio Kuratomi 51087d2e63 Add uri fixes to the changelog 9 years ago
Toshio Kuratomi 909216959a Update core submodule ref to pull in the fix for uri 9 years ago
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
9 years ago
Bjørnar Ness da4d423926 enable mysql connection via unix socket 9 years ago
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.
9 years ago
Brian Coca 9cf43ce17f fix boto.ec2 import as per #11755 9 years ago
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.
9 years ago
James Cammarata 24d9e5e0b4 New release v2.0.2.0-1 9 years ago
Robin Roth cd101967d8 fix tests for SLES and CoreOS
* include #15230
9 years ago
James Cammarata 0df4bfe063 Don't override the http status code when successful in urls.py 9 years ago
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 9 years ago
James Cammarata 26209342a2 New release v2.0.2.0-0.4.rc4 9 years ago
James Cammarata 62e4920896 Also fix intermittent ssh error using pty's for paramiko
Related to #13876
9 years ago
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
9 years ago
Toshio Kuratomi 94ff39c878 Update changelog for the two new bugfixes 9 years ago
Toshio Kuratomi 7bfa2fef17 Update core submodule ref for uri cherry-pick (dict_header defaults to None instead of dict) 9 years ago
James Cammarata 9bd8fe3f95 Fix free strategy, which was incorrectly using _wait_on_pending_results
Broken in 210cf06d
9 years ago
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.
9 years ago
nitzmahone 50f8c3507b update core submodule ref for win_user bugfixes 9 years ago
nitzmahone 151e02e53d update extras submodule ref for win_updates fixes 9 years ago
James Cammarata 388ee24311 New release v2.0.2.0-0.3.rc3 9 years ago
James Cammarata 7331922c80 Make sure VariableManager has a view of HostVars
Fixes #15261
9 years ago
Toshio Kuratomi 2950e5a75b Update changelog to reflect lxc_container fix 9 years ago
Toshio Kuratomi 9e8843af8d Update submodule refs 9 years ago
James Cammarata 2d6a0d24b8 New release v2.0.2.0-0.2.rc2 9 years ago
James Cammarata 9b7f466116 Updating the test_script integration tests with the version from devel 9 years ago
James Cammarata 4e12168b3c Fix logic error in script action plug related to use of shell.exists 9 years ago
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.
9 years ago
Malte Krupa 5c7474d96e Add '--skip-tags' to ansible-pull 9 years ago
Brian Coca 4e8da8ed09 moved 'path exists' function to shell
now it will work with powershell/winrm
9 years ago
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
9 years ago
James Cammarata a432be899e Only combine vars in include_vars if both are mappings
Fixes #15184
9 years ago
James Cammarata d68b463089 New unit tests for #13630 fix 9 years ago
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
9 years ago
Toshio Kuratomi 9ad418ae6d have to always run dwim() on the path to get the full absolute path.
Fixes #14944
9 years ago
James Cammarata 73992224f4 Fix --start-at-task which was broken by the setup task revamp
Fixes #15010
9 years ago
James Cammarata 13cb986873 Removing tests related to filename param (which is not in 2.0) 9 years ago
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/...)
9 years ago
nitzmahone 41892b3fc8 update core submodule ref for win_stat bugfix 9 years ago
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
9 years ago
Toshio Kuratomi e17ba96589 Should be errors=strict since we don't want to end up matching hosts like '???' 9 years ago
Toshio Kuratomi 2d0badc5ef Fix using non-ascii for inventory hostname patterns with the CLI. 9 years ago
Toshio Kuratomi 69377a2c85 nv_por is needed later in the file
Fixes #14654
9 years ago
James Cammarata d6f86f911c Adding CHANGELOG updates for 2.0.2 rc1 9 years ago