Commit graph

29855 commits

Author SHA1 Message Date
Toshio Kuratomi
81278323f3 Add hacking/env-setup python3 fixes to the changelog 2017-08-07 17:27:27 -07:00
Sloane Hertel
896becab34 hacking/test-module: fix for python3 (#26194)
* make hacking/test-module compatible with python3
(cherry picked from commit 113f92548a)
2017-08-07 17:27:27 -07:00
Jordan
db3ae98233 changelog: added entry for win_acl fix 2017-08-07 17:27:27 -07:00
Jordan Borean
c55b078d92 win_acl: registry support for special service accounts (#26629)
* Fixes #22968
* `APPLICATION PACKAGE AUTHORITY` ACLs also apply to the registry

* fixed nested for loop

(cherry picked from commit 81c22522a5)
2017-08-07 17:27:27 -07:00
Toshio Kuratomi
d038997d5c Add fix for postgres_user to changelog 2017-08-07 17:27:27 -07:00
Toshio Kuratomi
3d0462b456 Add pause module py3 fix to changelog 2017-08-07 17:27:27 -07:00
Toshio Kuratomi
30f813d716 Fix the pause module for python3
* On python3, stdin goes through a buffer that translates from raw bytes
  to text.  this interferes with pause as it (1) performs universal
  newline conversion and therefore '\r' is turned into '\n' and (2) the
  buffering prevents us from getting the typed characters immediately
  (possibly a python3 bug?)  Using the raw byte stream that's behind the
  text decoder fixes these problems.

Unrelated cleanups:
* Use to_text instead of str for conversion into strings to avoid possible tracebacks
* Use either \r or \n as the end of a line.

Fixes #26278
Resolves #26446

(cherry picked from commit 5ceabe939d)
2017-08-07 17:27:27 -07:00
Toshio Kuratomi
994ed2c443 Add template lookup fix to changelog 2017-08-07 17:27:27 -07:00
Toshio Kuratomi
2b40463a48 Do not escape backslashes when using the template lookup plugin
This brings the lookup plugin inline with what the template module does.

Fixes #26397

(cherry picked from commit cf5fb0acdf)
2017-08-07 17:27:27 -07:00
Toshio Kuratomi
743b396e5e Add azure py3 fixes to changelog 2017-08-07 17:27:27 -07:00
Raja
6e34fd16d5 Fix Python3 Errors in Azure Cloud Module
When using Python3, the exec_module function errors out with a
unsupported operand type(s) for +: 'dict_keys' and 'list'
error when adding the .keys() to a static list. Use the explicit
list function to make a list of keys and then add to the ['tags'] list.

(cherry picked from commit 171d903d04)
2017-08-07 17:27:27 -07:00
Toshio Kuratomi
f00d44e0b4 CHANGELOG entry for synchronize fix 2017-08-07 17:27:27 -07:00
Toshio Kuratomi
ac8598f1db Fix synchronize setting user variable
The user variable stores whether we need to set user@ in our connection
string.  It's now being used at the toplevel of the run() method so the
default needs to be calculated further up the stack

Fixes #24910

(cherry picked from commit 6908038036)
2017-08-07 17:27:27 -07:00
Matt Davis
584af4e9f8 2.3.2 CHANGELOG update for win_updates and non-pipelined fixes 2017-08-07 17:27:27 -07:00
Jordan Borean
392d268809 win_find: fix for empty nested directories (#26164)
(cherry picked from commit 98fc54f02d)
2017-08-07 17:27:27 -07:00
Michael De La Rue
a8afa6b96c Fix hacking/test-module to allow running modules with pdb (#23339)
* Fix hacking/test-module to allow running modules with pdb

* add emacs autosave files to gitignore

(cherry picked from commit 56d33a2967)
2017-08-07 17:27:27 -07:00
James Cammarata
c7052b42c7 New release v2.3.2.0-1 2017-08-04 15:24:09 -05:00
James Cammarata
611048c6ba Finalizing date for 2.3.2 final release in CHANGELOG 2017-08-04 15:18:06 -05:00
bobsaintcool
435cdcf84a <doc/dev/modules: Fix an RST typo into external link> (#27615)
Make a link a valid external hyperlink targets.
2017-08-03 14:28:24 -07:00
Matt Clay
c869423e0c Use python-crypto instead of python2-cryptography. 2017-08-03 12:39:25 -07:00
Matt Clay
96dd226235 Update RPM spec and make targets. (#27712)
(cherry picked from commit b54d00f2de)
2017-08-03 12:39:25 -07:00
Trishna Guha
eff04e9fa3 modify indent to avoid re-run src template fail (#27689)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-08-03 13:50:44 +05:30
Trishna Guha
3d446b2fab fix NameError eos_config (#27684)
Signed-off-by: Trishna Guha <trishnaguha17@gmail.com>
2017-08-03 11:39:53 +05:30
syquus
987ad8993c Typo on path return Value : "authorzied" (#27555)
Seen on official documentation: http://docs.ansible.com/ansible/latest/authorized_key_module.html
2017-08-02 22:09:49 +01:00
James Cammarata
76b5b35458 New release v2.3.2.0-0.5.rc5 2017-08-01 18:51:23 -05:00
Toshio Kuratomi
360703234e add changelog 2017-08-01 15:39:34 -07:00
Toshio Kuratomi
25c95a96a8 Fix for ansiballz filenames conflicting with python stdlib modules
The AnsiBallZ wrapper is transferred to the remote machine with
a filename similar to the Ansible-module it runs.  For modules like copy
and tempfile, this can end up conflicting with stdlib modules on the
remote machine depending on how python is setup there.  We have a little
bit of code in the wrapper to deal with this by removing the path that
the ansible module resides in from sys.path.

On MacOSX, that code was having a problem.  The path the module ends up
in included a symlinked directory so we were looking for a path in
sys.path but we had to look for the unsymlinked path instead.

Fix that by using os.path.realpath() instead of os.path.abspath()

(cherry picked from commit 15902f2496)
2017-08-01 15:21:21 -07:00
John R Barker
46846b1973 docs: fix community meetings link (#27264) (#27586)
(cherry picked from commit 9c50933a80)
2017-08-01 17:43:18 +01:00
Abhijeet Kasurde
d0a1679113 [Backport] Multiple fixes for vmware_guest_facts (#27464)
* Updated Folder documentation
* Updated Example
* Updated imports
* Added correct logic to use FindByInventoryPath() API
* Remove get_exception in favor of to_native
* Remove redundant get_obj method

Fixes: #24691

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-08-01 09:35:10 -04:00
Abhijeet Kasurde
504558eab3 [Backport] vmware_guest: Fix "KeyError: 'changed'" (#27456)
This is a backport of vmware_guest fix.

Fixes: #27390

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
2017-08-01 09:34:43 -04:00
Matt Clay
6698dc00e3 Add potential work-around for expect on macOS.
http://pexpect.readthedocs.io/en/stable/commonissues.html#truncated-output-just-before-child-exits

(cherry picked from commit 0c7602fb59)
2017-07-31 13:22:52 -07:00
Brian Coca
e579afc432 added backports 2017-07-31 13:10:19 -04:00
Brian Coca
96296e8c71 make random_choice more error resilient (#27380)
* make random_choise more error resilient

fixes #27373

(cherry picked from commit b79744f282)
2017-07-31 11:48:26 -04:00
Brian Coca
a53cc97f19 ensure prefix in plugin loading to avoid conflicts
when using 'all' to load all plugins were ending in main namespace
creating conflicts with each other and random modulesr
 i.e. when trying to access json callback we were getting json 'parsing' lib

(cherry picked from commit b93b9e68d7)
2017-07-31 11:48:26 -04:00
Jean-Frédéric
c276466262 Fix error with meta: clear_facts (#26406)
Using `meta: clear_facts` was failing with
`coercing to Unicode: need string or buffer, Host found`

This applies the same fix as 3101e24.

Fixes #26405
(cherry picked from commit 23041c3b6c)
2017-07-28 09:19:09 -05:00
James Cammarata
532b4338f4 New release v2.3.2.0-0.4.rc4 2017-07-26 09:54:02 -05:00
Martin Krizek
7a6c5dd1ab Fix using DNF group upgrade/remove api
(cherry picked from commit 119c9e5d6e)
2017-07-26 07:39:49 -07:00
Brian Coca
8f8d4d103f updated with recent cherry picks 2017-07-26 10:07:25 -04:00
Brian Coca
5b39de5013 better reading of 'facts'
(cherry picked from commit c7e841e0e4)
2017-07-26 09:37:02 -04:00
Toshio Kuratomi
9d435fd47b Add seboolean fix to the changelog 2017-07-25 15:55:48 -07:00
Michael Scherer
1628a25d8d Workaround python-libselinux API change (#25685)
In the past, selinux.security_get_boolean_names did return 'bytes'
on python 3, but this was changed to return string later, cf:
b8711e2eaf

So we have to convert to bytes only if the API return us bytes.

Fix #25651
(cherry picked from commit e2d6ecfa40)
2017-07-25 15:54:54 -07:00
Jason Tibbitts
0a7bad68dc Avoid using deprecated group_install API
DNF's base.group_install() function accepts a string as its first
argument.  Prior to DNF-2, compatibility code existed which allowed this
function to accept a base.comps.Group object instead.  That is no longer
possible.

Pass "group.id" to base.group_install() instead of "group" to work
around this.

(cherry picked from commit ccce74cf7b)
2017-07-25 15:36:58 -07:00
Will Thames
2385e2be27 include_role handlers bug fix (#26335)
* Ensure that include_role properly fires handlers

include_role needs to ensure that any handlers included
with the role are added to the _notified_handler and
_listening_handler lists of the TaskQueueManager, otherwise
it fails when trying to run the handler.

Additionally, the handler needs to be added to the
PlayIterator's `_uuid_cache` or it fails after running
the handler

Add more uuid debug statements - this code was hard
to debug with existing debug statements, so add more
uuid information at little additional output cost.

Fixes #18411

* Add tests for include_role handlers

Tests for #18411

(cherry picked from commit ef8c9798d3)
2017-07-25 16:37:24 -05:00
KeepZero
91f70a4462 Fix performance issue while match pattern in large inventory list 2017-07-25 17:19:48 -04:00
Toshio Kuratomi
28fa228d93 Fix for nonutf8 filenames causing crashes when setting permissions
Fixes #23861

(cherry picked from commit b26ee657b5)
2017-07-25 00:16:57 -07:00
Toshio Kuratomi
795e75433e Expand the result from pwd to make the test more robust
Sometimes MacOSX's pwd doesn't return an expanded path.  Not sure why
but this test is still valid if we expand it via a playbook filter so
go ahead and do that.

(cherry picked from commit 6a41a4f311)
2017-07-24 10:27:46 -07:00
Toshio Kuratomi
ddc124297a Update changelog for utf8 recurse files bug 2017-07-24 09:22:08 -07:00
Toshio Kuratomi
9a05efcab9 Fix for to_text and to_bytes error handlers
* surrogate_then_strict doesn't exist.  Switch to surrogate_or_strict
  instead.
* Found some bugs in the _text.py implementation
  * The composed error handlers (error handlers which are made up of two
    or more python encoding error handlers) had a wrong string in it,
    'surrogate_or_escape' doesn't exist.  Replaced that with
    'surrogate_or_replace' which is the correct handler name.
  * Left comment about the implicit conditions that are part of the
    surrogate_then_replace code path

Fixes #23865
Fixes #23861

(cherry picked from commit fc5d71de0d)
2017-07-24 09:22:08 -07:00
Matt Clay
0e0400b12e Disable zypper* tests which are timing out.
(cherry picked from commit d031ff8aec)
2017-07-24 09:21:00 -07:00
Toshio Kuratomi
8eba034942 Add su_pass fix to changelog 2017-07-24 08:00:59 -07:00