- 11 Sep, 2015 13 commits
-
-
Labels must start with an alphanumeric character, may contain alphanumeric characters or hyphens, but must not end with a hyphen. We enforce those rules, but allow underscores wherever hyphens are accepted, and allow alphanumeric ranges anywhere. We relax the definition of "alphanumeric" to include Unicode characters even though such inventory hostnames cannot be used in practice unless an ansible_ssh_host is set for each of them. We still don't enforce length restrictions—the fact that we have to accept ranges makes it more complex, and it doesn't seem especially worthwhile.
Abhijit Menon-Sen committed -
This adds a parse_address(pattern) utility function that returns (host,port), and uses it wherever where we accept IPv4 and IPv6 addresses and hostnames (or host patterns): the inventory parser the the add_host action plugin. It also introduces a more extensive set of unit tests that supersedes the old add_host unit tests (which didn't actually test add_host, but only the parsing function).
Abhijit Menon-Sen committed -
Fixes #12327
James Cammarata committed -
Python 3: make ansible.template.safe_eval() work
James Cammarata committed -
Test for Python must be against basename of interpreter
Brian Coca committed -
James Cammarata committed
-
This reverts commit 926f1272.
James Cammarata committed -
Followup on issue #12076
Thomas Quinot committed -
Add the new module replacer <<INCLUDE_ANSIBLE_MODULE_JSON_ARGS>>.
James Cammarata committed -
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 8 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
-