- 11 Sep, 2015 4 commits
-
-
There was code to support set literals (on Python 2.7 and newer), but it was buggy: SAFE_NODES.union() doesn't modify SAFE_NODES in place, instead it returns a new set object that is then silently discarded. I added a unit test and fixed the code. I also changed the version check to use sys.version_tuple instead of a string comparison, for consistency with the subsequent Python 3.4 version check that I added in the previous commit.
Marius Gedminas committed -
Two things changed in Python 3.4: - 'basestring' is no longer defined, so use six.string_types - True/False are now special AST node types (NamedConstant) rather than just names (Good thing we had tests, or I wouldn't have noticed the 2nd thing!) I found only one place where safe_eval() is called inside the ansible codebase: in lib/template/__init__.py. The call to safe_eval(result, ...) is protected by result.startswith('...'), which means result cannot possibly be a byte string on Python 3 (or startswith() would raise, so six.string_types (which excludes byte strings on Python 3) is fine here.Marius Gedminas committed -
Fixes #12314
James Cammarata committed -
cloudstack: new integration test role test_cs_user
Brian Coca committed
-
- 10 Sep, 2015 19 commits
-
-
Fixes #12313
James Cammarata committed -
Brian Coca committed
-
James Cammarata committed
-
Brian Coca committed
-
James Cammarata committed
-
Required as part of fix for #12123
James Cammarata committed -
Fixes #12123
James Cammarata committed -
Toshio Kuratomi committed
-
Rename ansible_ssh_{host,port,user} in docs to ansible_*Brian Coca committed -
The _ssh variants will continue to work, but the shorter, more generic names are preferred now.
Abhijit Menon-Sen committed -
Doc fixes
Brian Coca committed -
Jiri tyr committed
-
Resurrection of the comment filter
Brian Coca committed -
Jiri tyr committed
-
Python 3: use the right PyYAML SafeRepresenter for unicode
Toshio Kuratomi committed -
PyYAML has a SafeRepresenter in lib/... that defines def represent_unicode(self, data): return self.represent_scalar(u'tag:yaml.org,2002:str', data) and a different SafeRepresenter in lib3/... that defines def represent_str(self, data): return self.represent_scalar('tag:yaml.org,2002:str', data) so the right thing to do on Python 3 is to use represent_str. (AnsibleUnicode is a subclass of six.text_type, i.e. 'str' on Python 3.)Marius Gedminas committed -
change ec2 util to create only requested objects
Benno Joy committed -
Fixes #12282
James Cammarata committed -
Typo in comment: "bsaename" → "basename"
James Cammarata committed
-
- 09 Sep, 2015 17 commits
-
-
Vault missing DataLoader for pwd file #12293
James Cammarata committed -
Fixes #12301
James Cammarata committed -
James Cammarata committed
-
Allows ANSIBLE_LIBRARY to overload core modules even if the module in ANSIBLE_LIBRARY doesn't have a .py extension.
Toshio Kuratomi committed -
James Cammarata committed
-
Rene Moser committed
-
Blake Atkinson committed
-
Fixes #12284
James Cammarata committed -
Fix problem with "=" in the initial file path.
Toshio Kuratomi committed -
Revert "remove closing connections after every task, this goes against conneciton caching and was not expected behaviuor nor inhertited from v1" needed for winrm, disabled closing connections in ssh to avoid issues with that persistance, need to normalize all this in future This reverts commit 23a22397.
Brian Coca committed -
Brian Coca committed
-
Toshio Kuratomi committed
-
James Cammarata committed
-
napkindrawing committed
-
Also fixes a template path lookup issue when using an include Fixes #12277
James Cammarata committed -
Python 3: use six.string_types instead of basestring
Toshio Kuratomi committed -
* Turn strings into byte strings before passing to shlex and turn them back into unicode strings after they are retyurned from there Fixes #12257
Toshio Kuratomi committed
-