community.general/lib/ansible/module_utils
Toshio Kuratomi 02e3f4b526 Fix for atomic_move on RHEL5
When becoming an unprivileged user using non-sudo on a platform where
getlogin() failed in our situation we were not able to detect that the
user had switched.  This meant that all of our logic to use move vs copy
if the user had switched was attempting the wrong thing.  This change
tries the to do the right thing but then falls back to an acceptable
second choice if it doesn't work.

The bug wasn't easily detected because:
* sudo was not affected because sudo records that the user's have been
  switched so we were able to detect that.
* getlogin() works on most platforms.  RHEL5 with python-2.4 seems to be
  the only platform we still care about where getlogin() fails for this
  case.
* It had to be becoming an unprivileged user.  When becoming
  a privileged user, the user would be able to successfully perform the
  best case tasks.
2017-01-04 14:08:19 -08:00
..
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
_text.py Simplify surrogate check in to_text() (#18211) 2016-10-29 09:12:02 -07:00
a10.py modified POST body in axapi_authenticate_v3() and axapi_call_v3() (#18104) 2016-11-23 11:10:58 -05:00
api.py Added basic auth argument spec to utils (#15585) 2016-04-25 14:55:39 -04:00
asa.py Disable CLI errors when typing enable (#18531) 2016-12-12 15:55:22 -05:00
azure_rm_common.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
basic.py Fix for atomic_move on RHEL5 2017-01-04 14:08:19 -08:00
bigswitch_utils.py Add bigswitch big mon inline chain module (#18631) 2017-01-03 22:26:34 -05:00
cloud.py CloudRetry/AWSRetry backoff decorator with unit tests (#17039) 2016-09-13 16:46:59 -04:00
cloudengine.py Contributing new module to manage HUAWEI data center CloudEngine switch. (#19793) 2017-01-03 22:30:59 -05:00
cloudstack.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
database.py just a few spelling error changes 2015-04-28 09:36:42 -04:00
dellos6.py Update OS6 sublevels (#17735) 2016-09-24 09:27:38 -04:00
dellos9.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
dellos10.py Fixes #18663. Bad handling of existing config in dellos9 module. (#18664) 2016-12-12 15:51:32 -05:00
docker_common.py Remove duplicate declaration of human_to_bytes 2016-11-07 12:04:32 -05:00
ec2.py Undo format changes 2016-12-30 10:42:33 -05:00
eos.py fixes exception raised when extracting timeout value from ModuleStub in eapi (#18651) 2016-11-28 16:00:15 +00:00
exoscale.py Removed dict.iteritems() in several other files. 2016-12-14 08:01:45 -08:00
f5.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
facts.py Performance improvement using in-operator on dicts 2017-01-03 11:31:38 -05:00
gcdns.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gce.py Fix import of gce/gcdns without a libcloud module 2016-07-29 13:34:09 -04:00
gcp.py Adding auth support for google-api-python-client and gcloud-python (#19090) 2016-12-29 12:33:52 -05:00
infinibox.py Initial Commit for Infinidat Ansible Modules (#19429) 2016-12-22 13:18:19 +00:00
ios.py Network module cleanup (#17334) 2016-09-06 13:49:48 -04:00
iosxr.py clean up iosxr shared module 2016-09-11 23:32:05 -04:00
ipa.py FreeIPA module polymorphic restructuring, Python 3 support, and small fixes. (#18542) 2016-12-04 10:43:35 +00:00
ismount.py fix typo 2016-02-08 19:10:04 +01:00
json_utils.py bugfixes to JSON junk filter, added unit/integration tests to exercise (#17834) 2016-10-02 08:03:42 -07:00
junos.py Add 'update' parameter in junos_config module (#19046) 2016-12-21 11:56:55 -05:00
known_hosts.py ssh-keyscan can fail to find keys for a host. 2016-12-01 07:53:18 -08:00
local.py cast injected json string to bytes in local modules (#19519) 2016-12-19 11:34:18 -05:00
lxd.py Clean up shebangs for various files. 2016-11-02 17:00:27 -07:00
mysql.py enable mysql connection via unix socket 2016-04-12 14:16:18 +02:00
netcfg.py allow netcfg to pass kwargs from __call__ to configure() (#17653) 2016-09-19 22:27:31 -04:00
netcli.py Hopefully clear up some junos issues. (#17616) 2016-12-15 17:07:19 -05:00
network.py Exception.message gone in 3.x (#18221) 2016-10-28 13:48:16 -04:00
nxos.py Add timeout option for nxapi (#18074) 2016-11-02 13:32:19 +00:00
openstack.py openstack: iterate through nova addresses with six (#18408) 2016-11-18 12:44:16 -08:00
openswitch.py Cleanup openswitch 2016-09-12 13:35:57 -04:00
ovirt.py ovirt: get default auth/connection params from environment vars (#19385) 2016-12-30 12:24:05 -05:00
powershell.ps1 Improved Get-PendingRebootStatus 2016-11-11 14:49:01 -08:00
pycompat24.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
rax.py Migrate basestring to a python3 compatible type (#17199) 2016-08-23 13:13:44 -07:00
redhat.py Remove some more unused stdlib deps. 2015-11-03 09:53:18 -08:00
service.py dont fail on missing service during check mode 2016-11-22 16:16:55 -05:00
shell.py Assorted python3 fixes for network code. (#18777) 2016-12-15 16:25:03 -05:00
six.py Fix role completion detection problem 2017-01-03 14:32:44 -06:00
splitter.py Changing license on module_utils/splitter.py to BSD 2016-08-13 09:56:12 -05:00
sros.py updates sros shared module 2016-09-11 23:34:46 -04:00
univention_umc.py univention: add common code for univention corporate server modules (#16172) 2016-08-27 09:42:53 +02:00
urls.py Fix traceback on Darwin with Python3 2017-01-04 00:33:12 -08:00
vca.py Fux bug 18584 (#18718) 2016-12-04 10:46:41 +00:00
vmware.py Port the module snippet to python3 (#15870) 2016-05-16 08:04:43 -04:00
vyos.py fixes issue with setting the terminal length (pager) in vyos (#18546) 2016-11-21 15:47:48 +00:00