Marius Gedminas
073f10a52a
Python 3: don't convert module arguments to bytes
...
Fixes a test failure:
======================================================================
ERROR: test_module_utils_basic_ansible_module_creation (units.module_utils.test_basic.TestModuleUtilsBasic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/mg/src/ansible/test/units/module_utils/test_basic.py", line 250, in test_module_utils_basic_ansible_module_creation
supports_check_mode=True,
File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 470, in __init__
self._check_required_arguments()
File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 1050, in _check_required_arguments
self.fail_json(msg="missing required arguments: %s" % ",".join(missing))
File "/home/mg/src/ansible/lib/ansible/module_utils/basic.py", line 1445, in fail_json
sys.exit(1)
SystemExit: 1
-------------------- >> begin captured stdout << ---------------------
{"msg": "missing required arguments: foo", "failed": true}
because converting 'foo' to bytes yields b'foo' on Python 3, which
doesn't match the native-unicode 'foo' argument spec.
10 years ago
James Cammarata
ee559e03f7
Merge pull request #12725 from mgedmin/py3k
...
Python 3: there's no basestring
10 years ago
James Cammarata
e6d3c6745f
Revert to using local file/dir tests in inventory instead of loader's
...
Fixes #12719
10 years ago
Brian Coca
c637d60a8d
fixed deprecation message
10 years ago
Brian Coca
f5227d494b
added missing cachefile and changed str(e) to to_bytes(e)
10 years ago
Marius Gedminas
9ba6c087d3
Python 3: there's no basestring
10 years ago
Marius Gedminas
f03da5be42
Python 3: there's no iteritems()
10 years ago
James Cammarata
2d77c643e4
Merge pull request #12723 from mgedmin/py3k
...
Make ansible.vars.unsafe_proxy Python 3 friendly
10 years ago
Marius Gedminas
e511d6d458
Make UnsafeProxy work on Python 3
...
Instead of str and unicode we have to deal with bytes and str.
10 years ago
Marius Gedminas
af6a316d9b
Remove unused import
...
Fixes ImportError: No module named '__builtin__' on Python 3.
10 years ago
James Cammarata
426187489f
Add variable for format parameter
10 years ago
Toshio Kuratomi
8277747a04
Fix password lookup when password file exists and the password is not encrypted
10 years ago
James Cammarata
cd2cb178ae
Totally rework the way UnsafeProxy does things
10 years ago
Toshio Kuratomi
15d7f53846
AnsibleModules.log() fix for python3
...
Also add unittests for AnsibleModules.log()
Fixes #12586
10 years ago
Toshio Kuratomi
b49e0995cb
Fix typo
10 years ago
Toshio Kuratomi
b58d7470d4
Cleanup logic and be more paranoid about passwords with spaces
10 years ago
James Cammarata
5c5806d669
Fixing bugs related to jfonfile cache plugin
...
* corrupt/invalid file causes tracebacks
* incorrect initialization of display/_display in BaseCacheModule class
* tweaking the way errors in get() on jsonfile caches work, to raise
a proper AnsibleError in that situation so the playbook/task is stopped
Fixes #12708
10 years ago
Toshio Kuratomi
b441bcb678
Fix display when run through a testing framework that overrides stderr/stdout
10 years ago
James Cammarata
d15fcf05f0
Fix bug in the way temp vars were created for templating vars_files
...
Fixes #12711
10 years ago
Brian Coca
f5f3bf06e4
Merge pull request #12550 from redrampage/remove-pw-salt-deletion
...
Removed deletion of salt by 'password' lookup
10 years ago
James Cammarata
73661d1761
Merge branch 'devel' of https://github.com/ansible/ansible into devel
10 years ago
Charles Paul
3d533cb423
fixing calls to fail_json
10 years ago
Brian Coca
50372eecc9
Merge pull request #12455 from privateip/devel
...
added methods for retrieving vapp and vm
10 years ago
James Cammarata
82e76e42e5
Tweak to the way serial percentages are handled
10 years ago
James Cammarata
63e288354e
Fix bug in way omitted values were set
10 years ago
James Cammarata
4c85ae0712
Merge branch 'serial_should_be_string' of https://github.com/klshxsh/ansible into klshxsh-serial_should_be_string
10 years ago
klshxsh
ac00c9ced7
changed 'string' to 'percent' for _serial
...
Note that this allows both integers (e.g. 3) and percentages (e.g. "30%")
Also changed default back to 0 rather than '0'
10 years ago
James Cammarata
eb60ce1b6e
Merge pull request #12703 from keitwb/inventory_file_var
...
Adding the inventory_file var back
10 years ago
James Cammarata
71a1a3c903
Submodule pointer update
10 years ago
Ben Keith
1f82971283
Adding the inventory_file var back
10 years ago
Toshio Kuratomi
45a161b0a1
Merge pull request #12429 from edmstudio/devel
...
Update synchronize module plugin to work on OS X
10 years ago
Petr Mifek
6e035a3e94
Move nested function test for ipv6 to top level in synchronize module.
10 years ago
Brian Coca
45788fbfad
<homer>doh!</homer>
10 years ago
Brian Coca
d24532757c
remove fix for local_action/connection local that is now not needed
10 years ago
klshxsh
4a5e52b2d2
The serial keyword can be specified as a percentage, e.g '30%' or a number e.g. '3'; therefore it needs to be a string to allow both types
10 years ago
Brian Coca
b9d54e9a01
corrects previous fix to deal with missing item key in results dict
10 years ago
Brian Coca
abf2e13955
Revert "Track local_action internally to prevent it from being overridden"
...
This reverts commit 49ca0eb797 .
10 years ago
Brian Coca
101c8785ec
removed changes to make local action equate connection=local and brought it back to equate delegate_to=localhost
10 years ago
Brian Coca
bcb173996b
Merge pull request #12695 from matburt/fix_cache_plugins_for_v2
...
Fix an issue where cache plugins weren't updated in certain scenarios
10 years ago
Brian Coca
fbf4cafab5
on skipped you 'might' not have an item, changed to getattr to avoid keyerror
...
fixes #12683
10 years ago
Matthew Jones
7da478a4f4
Fix an issue where cache plugins weren't updated
...
The first call to persisting facts would work due to the assignment of a
MutableMapping calling __setitem__ but subsequent module fact data would
not be propogated to the fact cache plugins because update() doesn't
invoke __setitem__. This changes the behavior a little bit and ensures
set() is called on cache plugins.
10 years ago
Brian Coca
ec02b255c3
Merge pull request #12689 from soarpenguin/bugfix
...
Remove some warning of undefined name and fix classmethod syntax error.
10 years ago
James Cammarata
770032648a
Show -> localhost for local_action tasks
10 years ago
James Cammarata
f415d39dfd
Merge pull request #12690 from stelligent/devel
...
Use AWS_DEFAULT_REGION env var if none specified
10 years ago
James Cammarata
cfa62e7a2a
Submodule pointer update
10 years ago
James Cammarata
868819f9fa
Make sure shlex split is returning properly encoded strings
...
Fixes #12676
10 years ago
Shayne Clausson
55b3f9e4e5
Use AWS_DEFAULT_REGION env var if none specified
10 years ago
soarpenguin
b11ea17385
fix classmethod syntax error.
10 years ago
soarpenguin
5efa4d29e3
fix some warning of undefined name.
10 years ago
James Cammarata
59d655c543
Double echo temp directory name to handle spaces and ~ expansion both
...
Fixes #12667
10 years ago