community.general/lib/ansible
Abhijit Menon-Sen 1284c49bd7 Rewrite the INI InventoryParser
The new code parses INI-format inventory files in a single pass using a
well-documented state machine that reports precise errors and eliminates
the duplications and inconsistencies and outright errors in the earlier
three-phase parsing code (e.g. three ways to skip comments). It is also
much easier now to follow what decisions are being taken on the basis of
the parsed data. The comments point out various potential improvements,
particularly in the area of consistent IPv6 handling.

On the ornate marble tombstone of the old code, the following
inscription is one last baffling memento from a bygone age:

-    def _before_comment(self, msg):
-        ''' what's the part of a string before a comment? '''
-        msg = msg.replace("\#","**NOT_A_COMMENT**")
-        msg = msg.split("#")[0]
-        msg = msg.replace("**NOT_A_COMMENT**","#")
-        return msg
2015-08-20 22:05:17 +05:30
..
cli fixed indent 2015-08-18 09:58:25 -04:00
compat Making the switch to v2 2015-05-03 21:47:26 -05:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Making the switch to v2 2015-05-03 21:47:26 -05:00
executor fix issue with improper connection override in delegation 2015-08-19 20:36:08 -04:00
galaxy now returns false on bad role_data 2015-07-29 19:48:21 -04:00
inventory Rewrite the INI InventoryParser 2015-08-20 22:05:17 +05:30
module_utils cloudstack: rename returns for consistency 2015-08-19 21:25:19 +02:00
modules Update core submodule ref 2015-08-07 12:28:56 -07:00
new_inventory Making the switch to v2 2015-05-03 21:47:26 -05:00
parsing changed local_action to alias to connection=local vs delegate_to=localhost 2015-08-18 18:31:29 -04:00
playbook changed local_action to alias to connection=local vs delegate_to=localhost 2015-08-18 18:31:29 -04:00
plugins Add win_splitdrive filter for windows users 2015-08-20 13:54:54 +01:00
template Don't convert nulls to strings. 2015-08-19 18:35:07 -04:00
utils Default listify to converting bare variables again 2015-08-12 10:49:46 -04:00
vars changed fixme to deprecated 2015-08-19 15:49:37 -04:00
__init__.py Re-adding submodules after moving things around 2015-05-03 22:30:51 -05:00
constants.py Don't convert nulls to strings. 2015-08-19 18:35:07 -04:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00