)]}'
{"strategy/linear.py":[{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a3f4a697fe946460ce7d3bc37f50edad60520224","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if task.delegate_to:"},{"line_number":107,"context_line":"            # If a task uses delegation change the play_context"},{"line_number":108,"context_line":"            #  to use paramiko with pipelining disabled for this"},{"line_number":109,"context_line":"            #  one task on its collection of hosts."},{"line_number":110,"context_line":"            if _play_context.pipelining:"},{"line_number":111,"context_line":"                _play_context.pipelining \u003d False"},{"line_number":112,"context_line":"                LINEAR.display.verbose("},{"line_number":113,"context_line":"                    u\u0027Because this is a task using \"delegate_to\"\u0027"},{"line_number":114,"context_line":"                    u\u0027 pipelining has been disabled. but will be\u0027"},{"line_number":115,"context_line":"                    u\u0027 restored upon completion of this task.\u0027,"},{"line_number":116,"context_line":"                    host\u003dhost,"},{"line_number":117,"context_line":"                    caplevel\u003d0"},{"line_number":118,"context_line":"                )"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"            if _play_context.connection \u003d\u003d \u0027smart\u0027:"},{"line_number":121,"context_line":"                _play_context.connection \u003d \u0027paramiko\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_6390834f","side":"PARENT","line":118,"range":{"start_line":109,"start_character":0,"end_line":118,"end_character":17},"updated":"2017-04-08 00:57:34.000000000","message":"I think this tweak may be worth keeping though I\u0027m inclined to let this go for now. pipelinning in general is faster but previously we\u0027ve found it to break in unexpected ways especially when using delegate_to. I\u0027ve +2\u0027d and we can always put this back later should we need.","commit_id":"5e1828ce6e3f7120b61113bc57e6a2e74dec90bf"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"eeae0b48740bbb2d34b7729ee6eda8cbe2d43955","unresolved":false,"context_lines":[{"line_number":106,"context_line":"        if task.delegate_to:"},{"line_number":107,"context_line":"            # If a task uses delegation change the play_context"},{"line_number":108,"context_line":"            #  to use paramiko with pipelining disabled for this"},{"line_number":109,"context_line":"            #  one task on its collection of hosts."},{"line_number":110,"context_line":"            if _play_context.pipelining:"},{"line_number":111,"context_line":"                _play_context.pipelining \u003d False"},{"line_number":112,"context_line":"                LINEAR.display.verbose("},{"line_number":113,"context_line":"                    u\u0027Because this is a task using \"delegate_to\"\u0027"},{"line_number":114,"context_line":"                    u\u0027 pipelining has been disabled. but will be\u0027"},{"line_number":115,"context_line":"                    u\u0027 restored upon completion of this task.\u0027,"},{"line_number":116,"context_line":"                    host\u003dhost,"},{"line_number":117,"context_line":"                    caplevel\u003d0"},{"line_number":118,"context_line":"                )"},{"line_number":119,"context_line":""},{"line_number":120,"context_line":"            if _play_context.connection \u003d\u003d \u0027smart\u0027:"},{"line_number":121,"context_line":"                _play_context.connection \u003d \u0027paramiko\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_897b8cbc","side":"PARENT","line":118,"range":{"start_line":109,"start_character":0,"end_line":118,"end_character":17},"in_reply_to":"bff0334d_6390834f","updated":"2017-04-10 13:21:26.000000000","message":"I could carry it over if necessary. I don\u0027t know enough about the pipelining+delegation issue to say whether it is still necessary though?","commit_id":"5e1828ce6e3f7120b61113bc57e6a2e74dec90bf"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"c970cc23d37d8be9d7415288cb3163e164059805","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        _play_context \u003d copy.deepcopy(play_context)"},{"line_number":105,"context_line":"        _vars \u003d _play_context._attributes[\u0027vars\u0027]"},{"line_number":106,"context_line":"        if task.delegate_to:"},{"line_number":107,"context_line":"            delegated_host_name \u003d templar.template(task.delegate_to)"},{"line_number":108,"context_line":"            delegated_vars \u003d task_vars.get(\u0027ansible_delegated_vars\u0027, dict()).get(delegated_host_name, dict())"},{"line_number":109,"context_line":"            delegated_templar \u003d LINEAR.Templar(loader\u003dself._loader, variables\u003ddelegated_vars)"},{"line_number":110,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_45f3f574","line":107,"range":{"start_line":107,"start_character":12,"end_line":107,"end_character":68},"updated":"2017-04-11 17:20:28.000000000","message":"This is the current glaring issue. When delegate_to is used in a loop, the item is not set at this point so the actual target cannot be resolved.\n\nIt is possible to set this like:\ndelegated_host_name \u003d templar.template(task.delegate_to, fail_on_undefined\u003dFalse)\n..and then wrap the following items in an \"if delegated_host_name:\", to get things working in cases where container resolution is not required in delegate_to loops. But I don\u0027t see a solution here to get this working in a looped setup with container targets.\n\nMaybe we need to find a different home for this container lookup process where we can access the loop vars? Is there somewhere we can hook further inside the task execution?","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"0919e9dccee607ec5313d659c2913d1414c56dbb","unresolved":false,"context_lines":[{"line_number":105,"context_line":"        _vars \u003d _play_context._attributes[\u0027vars\u0027]"},{"line_number":106,"context_line":"        if task.delegate_to:"},{"line_number":107,"context_line":"            delegated_host_name \u003d templar.template(task.delegate_to)"},{"line_number":108,"context_line":"            delegated_vars \u003d task_vars.get(\u0027ansible_delegated_vars\u0027, dict()).get(delegated_host_name, dict())"},{"line_number":109,"context_line":"            delegated_templar \u003d LINEAR.Templar(loader\u003dself._loader, variables\u003ddelegated_vars)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"            physical_host \u003d delegated_templar.template(delegated_vars.get(\u0027physical_host\u0027))"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_1b1810d1","line":108,"updated":"2017-04-07 14:41:20.000000000","message":"L107-108 are pulled from https://github.com/ansible/ansible/blob/8d291f91eee18ca30b737eb1ca17e53c0632a7cc/lib/ansible/playbook/play_context.py#L337-L338","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"},{"author":{"_account_id":7353,"name":"Kevin Carter","email":"kevin@cloudnull.com","username":"cloudnull"},"change_message_id":"a3f4a697fe946460ce7d3bc37f50edad60520224","unresolved":false,"context_lines":[{"line_number":104,"context_line":"        _play_context \u003d copy.deepcopy(play_context)"},{"line_number":105,"context_line":"        _vars \u003d _play_context._attributes[\u0027vars\u0027]"},{"line_number":106,"context_line":"        if task.delegate_to:"},{"line_number":107,"context_line":"            delegated_host_name \u003d templar.template(task.delegate_to)"},{"line_number":108,"context_line":"            delegated_vars \u003d task_vars.get(\u0027ansible_delegated_vars\u0027, dict()).get(delegated_host_name, dict())"},{"line_number":109,"context_line":"            delegated_templar \u003d LINEAR.Templar(loader\u003dself._loader, variables\u003ddelegated_vars)"},{"line_number":110,"context_line":""},{"line_number":111,"context_line":"            physical_host \u003d delegated_templar.template(delegated_vars.get(\u0027physical_host\u0027))"},{"line_number":112,"context_line":"            _vars[\u0027container_name\u0027] \u003d delegated_templar.template(delegated_vars.get(\u0027container_name\u0027))"},{"line_number":113,"context_line":"            _vars[\u0027chroot_path\u0027] \u003d delegated_templar.template(delegated_vars.get(\u0027chroot_path\u0027))"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"        else:"},{"line_number":116,"context_line":"            physical_host \u003d _vars.get(\u0027physical_host\u0027)"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_837ee716","line":113,"range":{"start_line":107,"start_character":0,"end_line":113,"end_character":96},"updated":"2017-04-08 00:57:34.000000000","message":"TOTAL NIT: Even though this is partially lifted code, I think we should re-flow the lines for a length \u003c80.","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"6fb51064911d9d8bb447f575dbb93f3c55e0f5c4","unresolved":false,"context_lines":[{"line_number":129,"context_line":"                if chroot_path:"},{"line_number":130,"context_line":"                    _vars[\u0027chroot_path\u0027] \u003d chroot_path"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if physical_host:"},{"line_number":133,"context_line":"            ph \u003d self._inventory.get_host(physical_host)"},{"line_number":134,"context_line":"            ansible_host \u003d ph.vars.get(\u0027ansible_host\u0027)"},{"line_number":135,"context_line":"            if not ansible_host:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_21c94125","line":132,"range":{"start_line":132,"start_character":8,"end_line":132,"end_character":25},"updated":"2017-04-10 09:01:50.000000000","message":"nit: What do you think of erroring out if that\u0027s not set now? Or removing the condition?","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"},{"author":{"_account_id":17799,"name":"Logan V","email":"logan2211@gmail.com","username":"Logan2211"},"change_message_id":"eeae0b48740bbb2d34b7729ee6eda8cbe2d43955","unresolved":false,"context_lines":[{"line_number":129,"context_line":"                if chroot_path:"},{"line_number":130,"context_line":"                    _vars[\u0027chroot_path\u0027] \u003d chroot_path"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"        if physical_host:"},{"line_number":133,"context_line":"            ph \u003d self._inventory.get_host(physical_host)"},{"line_number":134,"context_line":"            ansible_host \u003d ph.vars.get(\u0027ansible_host\u0027)"},{"line_number":135,"context_line":"            if not ansible_host:"}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_095f7c72","line":132,"range":{"start_line":132,"start_character":8,"end_line":132,"end_character":25},"in_reply_to":"bff0334d_21c94125","updated":"2017-04-10 13:21:26.000000000","message":"It would error out any time the inventory item is not a container.","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"},{"author":{"_account_id":17068,"name":"Jean-Philippe Evrard","email":"openstack@a.spamming.party","username":"evrardjp"},"change_message_id":"6fb51064911d9d8bb447f575dbb93f3c55e0f5c4","unresolved":false,"context_lines":[{"line_number":134,"context_line":"            ansible_host \u003d ph.vars.get(\u0027ansible_host\u0027)"},{"line_number":135,"context_line":"            if not ansible_host:"},{"line_number":136,"context_line":"                ansible_host \u003d ph.vars.get(\u0027ansible_host\u0027)"},{"line_number":137,"context_line":"            if ansible_host:"},{"line_number":138,"context_line":"                _vars[\u0027physical_host\u0027] \u003d ansible_host"},{"line_number":139,"context_line":"                _vars[\u0027physical_hostname\u0027] \u003d physical_host"},{"line_number":140,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"bff0334d_a1dc31e4","line":137,"range":{"start_line":137,"start_character":12,"end_line":137,"end_character":14},"updated":"2017-04-10 09:01:50.000000000","message":"nit: else?","commit_id":"d8e507c44960dd76dc80d87375c3c13ec0720527"}]}
