)]}'
{"playbooks/inventory/dynamic_inventory.py":[{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"62e48de9ef583f08b560f8ca62983ac049534906","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    \"\"\""},{"line_number":204,"context_line":"    for item in belongs_to:"},{"line_number":205,"context_line":"        if key not in inventory[item][\u0027children\u0027]:"},{"line_number":206,"context_line":"            logger.debug(\"Adding %s to %s\" % (key, item))"},{"line_number":207,"context_line":"            append_if(array\u003dinventory[item][\u0027children\u0027], item\u003dkey)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a8ec9b2_8042883c","line":206,"updated":"2016-09-21 22:47:13.000000000","message":"would prefer to use the args parameter instead of string formatting the message\n\n(repeated through file)","commit_id":"122a22fd71f7132e3c4d474ed189a7c2dbe74aec"},{"author":{"_account_id":12892,"name":"Nolan Brubaker","email":"nolan.brubaker@rackspace.com","username":"nrb"},"change_message_id":"51b1b97b663d7e2080b25f1ee541cc8b9331200e","unresolved":false,"context_lines":[{"line_number":203,"context_line":"    \"\"\""},{"line_number":204,"context_line":"    for item in belongs_to:"},{"line_number":205,"context_line":"        if key not in inventory[item][\u0027children\u0027]:"},{"line_number":206,"context_line":"            logger.debug(\"Adding %s to %s\" % (key, item))"},{"line_number":207,"context_line":"            append_if(array\u003dinventory[item][\u0027children\u0027], item\u003dkey)"},{"line_number":208,"context_line":""},{"line_number":209,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a8ec9b2_c04bb0af","line":206,"in_reply_to":"7a8ec9b2_8042883c","updated":"2016-09-21 23:03:32.000000000","message":"Noted, will work on that.","commit_id":"122a22fd71f7132e3c4d474ed189a7c2dbe74aec"},{"author":{"_account_id":12807,"name":"Steve Lewis (stevelle)","email":"stevelle@gmail.com","username":"stevelle"},"change_message_id":"62e48de9ef583f08b560f8ca62983ac049534906","unresolved":false,"context_lines":[{"line_number":1272,"context_line":"            )"},{"line_number":1273,"context_line":"        )"},{"line_number":1274,"context_line":""},{"line_number":1275,"context_line":"    if debug_mode:"},{"line_number":1276,"context_line":"        num_hosts \u003d len(dynamic_inventory[\u0027_meta\u0027][\u0027hostvars\u0027])"},{"line_number":1277,"context_line":"        logger.debug(\"%d hosts found.\" % num_hosts)"},{"line_number":1278,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a8ec9b2_1e26decd","line":1275,"updated":"2016-09-21 22:47:13.000000000","message":"seems like you could dispense with the debug_mode var entirely using Logger.isEnabledFor(logging.DEBUG) here","commit_id":"122a22fd71f7132e3c4d474ed189a7c2dbe74aec"},{"author":{"_account_id":12892,"name":"Nolan Brubaker","email":"nolan.brubaker@rackspace.com","username":"nrb"},"change_message_id":"51b1b97b663d7e2080b25f1ee541cc8b9331200e","unresolved":false,"context_lines":[{"line_number":1272,"context_line":"            )"},{"line_number":1273,"context_line":"        )"},{"line_number":1274,"context_line":""},{"line_number":1275,"context_line":"    if debug_mode:"},{"line_number":1276,"context_line":"        num_hosts \u003d len(dynamic_inventory[\u0027_meta\u0027][\u0027hostvars\u0027])"},{"line_number":1277,"context_line":"        logger.debug(\"%d hosts found.\" % num_hosts)"},{"line_number":1278,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"7a8ec9b2_a0d944f5","line":1275,"in_reply_to":"7a8ec9b2_1e26decd","updated":"2016-09-21 23:03:32.000000000","message":"That should work. The main reason for this conditional was to avoid sending a loop over the inventory again solely for the sake of logging.","commit_id":"122a22fd71f7132e3c4d474ed189a7c2dbe74aec"},{"author":{"_account_id":19814,"name":"Travis Truman (automagically)","email":"travis_truman@cable.comcast.com","username":"trumant"},"change_message_id":"273fed6af06a002ebd526581b32f623d9ff8a5fd","unresolved":false,"context_lines":[{"line_number":249,"context_line":"                cuuid \u003d \u0027%s\u0027 % uuid.uuid4()"},{"line_number":250,"context_line":"                cuuid \u003d cuuid.split(\u0027-\u0027)[0]"},{"line_number":251,"context_line":"                container_host_name \u003d \u0027%s-%s\u0027 % (type_and_name, cuuid)"},{"line_number":252,"context_line":"                logger.debug(\"Generated containter name %s\","},{"line_number":253,"context_line":"                             container_host_name)"},{"line_number":254,"context_line":"                hostvars_options \u003d hostvars[container_host_name] \u003d {}"},{"line_number":255,"context_line":"                if container_host_type not in inventory:"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a8bc5a2_6a0c0295","line":252,"updated":"2016-09-22 16:46:53.000000000","message":"spelling","commit_id":"1af89ebfedb9b46a9469c41a7de31e7e1c7cf38c"},{"author":{"_account_id":12892,"name":"Nolan Brubaker","email":"nolan.brubaker@rackspace.com","username":"nrb"},"change_message_id":"58d0a7807c924241a3c1614434c4eaae06cbab4b","unresolved":false,"context_lines":[{"line_number":249,"context_line":"                cuuid \u003d \u0027%s\u0027 % uuid.uuid4()"},{"line_number":250,"context_line":"                cuuid \u003d cuuid.split(\u0027-\u0027)[0]"},{"line_number":251,"context_line":"                container_host_name \u003d \u0027%s-%s\u0027 % (type_and_name, cuuid)"},{"line_number":252,"context_line":"                logger.debug(\"Generated containter name %s\","},{"line_number":253,"context_line":"                             container_host_name)"},{"line_number":254,"context_line":"                hostvars_options \u003d hostvars[container_host_name] \u003d {}"},{"line_number":255,"context_line":"                if container_host_type not in inventory:"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a8bc5a2_20ff7b02","line":252,"in_reply_to":"5a8bc5a2_6a0c0295","updated":"2016-09-22 17:09:56.000000000","message":"Done","commit_id":"1af89ebfedb9b46a9469c41a7de31e7e1c7cf38c"}]}
