)]}'
{"contrib/deffered/deferred-example/Dockerfile.j2":[{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":5,"context_line":""},{"line_number":6,"context_line":"{% import \"macros.j2\" as macros with context %}"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"{% set command_buffer\u003d[] %}"},{"line_number":9,"context_line":"{{ macros.run(expressions\u003d[\u0027echo \"pre-install\"\u0027], buffer\u003dcommand_buffer) }}"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_64553150","line":8,"range":{"start_line":8,"start_character":0,"end_line":8,"end_character":27},"updated":"2017-09-06 16:44:26.000000000","message":"create a buffer array to accumulate commands into.","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":6,"context_line":"{% import \"macros.j2\" as macros with context %}"},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"{% set command_buffer\u003d[] %}"},{"line_number":9,"context_line":"{{ macros.run(expressions\u003d[\u0027echo \"pre-install\"\u0027], buffer\u003dcommand_buffer) }}"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"},{"line_number":12,"context_line":"{% block deferred_example_install %}"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_4450f55e","line":9,"range":{"start_line":9,"start_character":50,"end_line":9,"end_character":71},"updated":"2017-09-06 16:44:26.000000000","message":"pass buffer by reference to run and flush macros.","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":19,"context_line":""},{"line_number":20,"context_line":"{% endif %}"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"},{"line_number":23,"context_line":"{{ macros.install_packages(deferred_example_base_packages | customizable(\"packages\")) }}"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"{% endblock %}"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_041c2dbf","line":22,"range":{"start_line":22,"start_character":0,"end_line":22,"end_character":41},"updated":"2017-09-06 16:44:26.000000000","message":"required flush before executing install macro.\n\nrequired for the case where you enable repos before installing packages.\n\nother macros could be reimplemented on top of run macro to remove this requirement","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":33,"context_line":"{{ macros.run(expressions\u003d[\u0027echo \"or expanded for debug by setting deferred flag to false\"\u0027], buffer\u003dcommand_buffer) }}"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"},{"line_number":37,"context_line":"COPY extend_start.sh /usr/local/bin/kolla_extend_start"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"{{ macros.run(expressions\u003d[\u0027touch /usr/local/bin/kolla_deferred_example_extend_start\u0027"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_a4ff9965","line":36,"range":{"start_line":36,"start_character":0,"end_line":36,"end_character":41},"updated":"2017-09-06 16:44:26.000000000","message":"flush before copy or add instruch in case previous command would have created destination dirctory.\n\nnot needed in this case but added as example.","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":36,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"},{"line_number":37,"context_line":"COPY extend_start.sh /usr/local/bin/kolla_extend_start"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"{{ macros.run(expressions\u003d[\u0027touch /usr/local/bin/kolla_deferred_example_extend_start\u0027"},{"line_number":40,"context_line":"                           ,\u0027chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_deferred_example_extend_start\u0027]"},{"line_number":41,"context_line":"                           , buffer\u003dcommand_buffer) }}"},{"line_number":42,"context_line":""},{"line_number":43,"context_line":"{{ macros.run(expressions\u003d[\u0027echo \"post-config\"\u0027], buffer\u003dcommand_buffer) }}"},{"line_number":44,"context_line":""}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_0471cd0c","line":41,"range":{"start_line":39,"start_character":0,"end_line":41,"end_character":54},"updated":"2017-09-06 16:44:26.000000000","message":"multiple command can be run in the same macro with one entry in the array per command.","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"},{"author":{"_account_id":11604,"name":"sean mooney","email":"smooney@redhat.com","username":"sean-k-mooney"},"change_message_id":"cb18215cf40af528572a542feacc34b7881d20ab","unresolved":false,"context_lines":[{"line_number":42,"context_line":""},{"line_number":43,"context_line":"{{ macros.run(expressions\u003d[\u0027echo \"post-config\"\u0027], buffer\u003dcommand_buffer) }}"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"{% if self.deferred_example_base_footer() %} {{ macros.flush(buffer\u003dcommand_buffer) }} {% endif %}"},{"line_number":46,"context_line":"{% block deferred_example_base_footer %}{% endblock %}"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"{{ macros.flush(buffer\u003dcommand_buffer) }}"}],"source_content_type":"text/x-jinja2","patch_set":1,"id":"7f287b81_64d091f8","line":45,"range":{"start_line":45,"start_character":0,"end_line":45,"end_character":98},"updated":"2017-09-06 16:44:26.000000000","message":"conditional flush before template override entrypoint","commit_id":"a7e8e0cef1a993641e43a389ae43dfa27f4e911f"}]}
