Commit Graph

29523 Commits (a491adc4252bfe6c05aa6eeeccae4c9633e52cc0)
 

Author SHA1 Message Date
Matt Clay a491adc425 Fix ansible-test empty diff handling on Shippable.
(cherry picked from commit 92ad9a19b6)
9 years ago
Lucas Alvares Gomes 5f53a159a0 rpm_key: Decode bytes to string to work with Python 3 (Fixes #20326) (#20385)
* rpm_key: Decode bytes to string to work with Python 3 (#20326)

The read() method will return bytes we need to then decode() those bytes
to a string before trying to match() it using the re module.

* Make the rpm_key pgp regex more robust on both py2 and py3

(cherry picked from commit cee8cc2a52)
9 years ago
cclauss f2cf1dba92 Update the comments around Python 3
[Enterprise Linux 5 is at the end of "End of Production 3 phase"](https://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux#Product_life_cycle) so that is no longer a reasonable reason to wait.  Also removed the comments about [Python 3 not being mainstream](http://python3wos.mybluemix.net/201).  Perhaps a link to https://docs.ansible.com/ansible/python_3_support.html would also be a useful addition to this question.
(cherry picked from commit 6314169afd)
9 years ago
Karl Bergström 561d424a0e Open unarchive file in binary mode
Recent Python3 versions require open() to specify binary mode if the data is anything other than text.

Python3: Use int() instead of long() in unarchive

Changes long() to int() for CRC values in the unarchive module. Affects unarchiving of zip files. Since CRC values in zipfile are 32 bits the behaviour should be unchanged even in Python 2.
9 years ago
Paul Montero ba977b7cd7 Open file in binary mode for python3
(cherry picked from commit 1963e506ec)
9 years ago
Toshio Kuratomi 53b19611e1 Fix a traceback with python3 and diff output
When retrieving file contents for diffing we need to get the contents as
binary.  Otherwise python3 will try to convert the file to text and fail
with non-decodable contents.

Fixes #23171

(cherry picked from commit 2fdb8e7f90)
9 years ago
Ganesh Nalawade b8d6f23fb7 Fix a10 pylint issues (#23410) (#23413)
* Fix a10 pylint issues
* Moving imports to standard location

(cherry picked from commit 3934513121)
9 years ago
Matt Martz b96407be86 Extra deps needed for building cryptography
(cherry picked from commit ac61f09203)
9 years ago
Matt Martz bdf46e928f Fallback to old ssl_wrap_socket
(cherry picked from commit 13ac993d25)
9 years ago
Matt Martz 9acba3fa68 Update install deps for SNI tests
(cherry picked from commit b4b76bab14)
9 years ago
Matt Martz 71e8c841ce Use PyOpenSSLContext instead of deprecated wrap_ssl_context from urllib3.contrib.pyopenssl. Fixes #18528
(cherry picked from commit 33f7a27cba)
9 years ago
Strahinja Kustudić 701a47c850 Ignores ControlPersist broken pipe errors. Fixes #16731
Ansible will now automatically retry a connection if SSH returns an error:

mux_client_hello_exchange: write packet: Broken pipe

This is probably a bug in SSH, but because it's safe to retry this
connection there is no need for Ansible to fail because of it.

(cherry picked from commit 9f0be5a556)
9 years ago
Matt Parkes ffde769567 ini_file 'create' parameter default value should be True
Updated create default value to True to match documentation (and common sense).
9 years ago
Brian Coca 3b5a758525 centralize ansible_managed and other template vars
now template lookup supports these again.

(cherry picked from commit 5b7e8a7bd6)
9 years ago
Brian Coca 4b10f3c13c removed extra 'changed' from debug output
(cherry picked from commit f7566ef1f1)
9 years ago
Brian Coca e1c1c19a9b added test emulating #23180 use case
(cherry picked from commit 8382ed7200)
9 years ago
Brian Coca 690a793aae fix environment validation, make setup exception
removed bare vars
now environment inheritance correclty prepends
this allows more local to override more general

fixes #23180

(cherry picked from commit df5895e585)
9 years ago
Brian Coca d392c493b9 removed unused and erroring cmp import 9 years ago
Brian Coca 6799b21124 correctly get all hosts in 'all'
(cherry picked from commit 0d5d5f2bf6)
9 years ago
Pierre-Alexandre cac25fa7b0 BUGFIX : using yaml hosts inventory, hosts in groups weren't added to the group 'all'
(cherry picked from commit 283a88444f)
9 years ago
Matt Clay 74b6dd7799 Include .yamllint in manifest so yamllint works.
(cherry picked from commit 38eed2dab0)
9 years ago
Toshio Kuratomi 6b74dca0ff Add .coveragerc to the tarball so unittests will run from the tarball
(cherry picked from commit 0d2d17ade5)
9 years ago
James Cammarata d56ba0945d New release v2.3.0.0-1 9 years ago
James Cammarata 8f6c284ccf Updating CHANGELOG with release date for 2.3 9 years ago
James Cammarata 9818ca366d New release v2.3.0.0-0.6.rc6 9 years ago
Toshio Kuratomi 856edfe80c Revert "pacman: Fix package matching pattern in upgraded package list (#23433)"
Not a critical blocker so we'll push this to 2.3.1 instead of trying to
get it into 2.3.0 (Just too late in the development cycle to push it out
now).

This reverts commit 9a850db605.
9 years ago
Indrajit Raychaudhuri 9a850db605 pacman: Fix package matching pattern in upgraded package list (#23433) 9 years ago
Nathaniel Case bb5202fa7e Redo #23418 (#23425)
* Check for provider values inside check_args of respective network code

* Partial revert of b9ee5aa

The no_log change is okay, but take out the action result munging

(cherry picked from commit 86c714548f)
9 years ago
James Cammarata d72dbffa23 New release v2.3.0.0-0.5.rc5 9 years ago
Chris Alfonso b9ee5aae81 Fixes #23388 Network provider masks too much (#23418) (#23424)
* Fixes #23388 Network provider masks too much

* Fix trailing whitespace
9 years ago
James Cammarata 0fe53eda86 New release v2.3.0.0-0.4.rc4 9 years ago
Guillaume Coré c02b89759c fix incorrect parsing of xfs_info
when device name ends with 'data' line matches in :
-                if 'data ' in line:

closes #23352

(cherry picked from commit 3c75808c5c)
9 years ago
Peter Sprygada 69e5f2ae67 fixes return data structure (#22830)
The return was being re-written instead of updated so warnings were
lost.  This patch now updates the result instead of replacing it.
(cherry picked from commit d6787632c9)
9 years ago
Ganesh Nalawade 3cd89bd8a4 Fix #23360 junos_config set format issue (#23365) (#23373)
(cherry picked from commit 990ba90380)
9 years ago
Ricardo Carrillo Cruz 4f56567963 Unhardcode the port and protocol on eos EAPI (#23350)
We were hard-coding the protocol, port and validate_certs on
eos EAPI via the action plugin.
Put defaults on the eos_argument_spec and pull those values from it.
(cherry picked from commit 3537b24742)
9 years ago
Chris Alfonso 292ee29275 Fixes loginBanner plucking over eapi transport when loginBanner isn't set. (#23368) 9 years ago
Ganesh Nalawade ede49d9115 Fix #22880 junos_config update issue (#23333)
For update parameter add 'override' as acceptable value.
'override' name is in sync with junos naming convention.
(cherry picked from commit 0cd50f0706)
9 years ago
Nathaniel Case e2a1ea09dc Attempt to clear up nxos_mtu tests and documentation (#23361)
nxos_system wasn't added until 2.3, so nxos_mtu should have been deprecated
then.
(cherry picked from commit 98c23a3342)
9 years ago
nerzhul 1a45463725 Nsupdate idempotency fix
(cherry picked from commit 637e9942ff)
9 years ago
John R Barker c6e9039b23 fix iosxr commands to encode json (#23346) (#23355)
the command dict in the iosxr module_utils wasn't encoding the request
to json.  this patch will fix that problem
(cherry picked from commit f0008248d4)
9 years ago
John R Barker 0da250c9f1 More network_debug_troubleshooting.html (#23335) (#23341)
More "unable to open shell" -> network_debug_troubleshooting.html
(cherry picked from commit 13dc02d49d)
9 years ago
John R Barker 84d09cdf32 ecs_taskdefinition module : Convert environment variables to string (#23297) (#23337)
Before modification, it fails unless it is a string type
(cherry picked from commit dff35bc205)
9 years ago
John R Barker d6a8f10a70 Pass CSRF token along with Jenkins POST requests (#23250) (#23330)
(cherry picked from commit 4540853a50)
9 years ago
John R Barker c3e3580baf 'unable to open shell' -> direct to web help (#23267) (#23331)
* 'unable to open shell' -> direct to web help

The "unable to open shell" error is returned for a number of different,
direct people to online docs (we we can update out of band of releases)
to guide them though the various solutions.

* fix pep8 errors

(cherry picked from commit 529df8640b)
9 years ago
Matt Davis beb40dd10e Cleanse CLIXML from win_shell stderr (#23329)

							
						
9 years ago
Matt Davis efb717fe73 improve become_method: runas error handling (#23328)
Prescriptive errors for username/password issues and NTLM/Kerb auth failures, cleans up exception noise.
(cherry picked from commit 8d291f91ee)
9 years ago
Ricardo Carrillo Cruz bfb50df9a7 Check text key exists on eos_banner absent case (#23319)
This can fail if we don't check the key exists.
(cherry picked from commit b9b4e68206)
9 years ago
Ricardo Carrillo Cruz 5e09ddb6a4 Fix eapi basic-login asserts (#23318)
The asserts where not checking the commands sent to the device
(cherry picked from commit 4571ff0b52)
9 years ago
Ganesh Nalawade 3ba95b8ef7 Fix junos pylint issues (#23292)
* Fix junos rollback id validate issue (#23283)

(cherry picked from commit 0b8ca98c48)

* Fix various junos errors (#23278)

(cherry picked from commit e8538213fa)
9 years ago
Chris Alfonso 55583c71ff Fixes #23308 ios_banner: KeyError: 'text' on state: absen (#23313) (#23314) 9 years ago