)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":6816,"name":"Jesse Pretorius","email":"jesse@odyssey4.me","username":"jesse-pretorius"},"change_message_id":"79fcf46e039fe9fb01e6d938da9af38768cf149a","unresolved":false,"context_lines":[{"line_number":12,"context_line":"to take different actions depending on the operating system that is"},{"line_number":13,"context_line":"detected."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"Blueprint: implements multi-platform-host"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":"Change-Id: I98bcb478e99e11956618b2327399e18471aab534"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":4,"id":"7a2fa921_d13931a5","line":15,"updated":"2015-10-11 08:30:25.000000000","message":"Implements: blueprint multi-platform-host","commit_id":"ebe44411820b1448fa0761f98ddc6702fc6852ea"}],"scripts/os-detection.py":[{"author":{"_account_id":15313,"name":"Toby Oxborrow","email":"tobyox@cisco.com","username":"toby.oxborrow"},"change_message_id":"b579883f146302d528b0c1aae821ac2d4c69ff39","unresolved":false,"context_lines":[{"line_number":19,"context_line":"template \u003d \"\"\""},{"line_number":20,"context_line":"OS_DISTRO\u003d\"{0}\""},{"line_number":21,"context_line":"OS_VERSION\u003d\"{1}\""},{"line_number":22,"context_line":"OS_CODENAME\u003d\"{2}\""},{"line_number":23,"context_line":"\"\"\".format(*platform.linux_distribution())"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"print(template)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_d5c07352","line":22,"updated":"2015-10-09 08:19:50.000000000","message":"Is there any concern over using the prefix \"OS_\"? OpenStack uses OS_ for its environment variables. While there may not be any OS_DISTRO, OS_VERSION or OS_CODENAME in OpenStack right now, perhaps a different prefix should be chosen to avoid potential future trouble.","commit_id":"b82e991a327fb7b3c12afa9b2805734614f11b91"},{"author":{"_account_id":12000,"name":"Ian Cordasco","email":"sigmavirus24@gmail.com","username":"sigmavirus24"},"change_message_id":"f5f5bfb697876d6d6df6622d783e5ecc45372acc","unresolved":false,"context_lines":[{"line_number":19,"context_line":"template \u003d \"\"\""},{"line_number":20,"context_line":"OS_DISTRO\u003d\"{0}\""},{"line_number":21,"context_line":"OS_VERSION\u003d\"{1}\""},{"line_number":22,"context_line":"OS_CODENAME\u003d\"{2}\""},{"line_number":23,"context_line":"\"\"\".format(*platform.linux_distribution())"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"print(template)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_adfc6ab8","line":22,"updated":"2015-10-09 21:05:13.000000000","message":"Toby, that\u0027s a good point. I can\u0027t come up with a better prefix though :(\n\nThat said, since this is only being used to eventually echo all of this data, why don\u0027t we just do\n\n    print(\u0027Detected {0} {1} (codename: {2})\u0027.format(*platform.linux_distrubtion()))\n\nAnd do\n\n    python $(dirname ${0})/os-detection.py\n\nIn the scripts-library? Isn\u0027t that the simplest solution available?","commit_id":"b82e991a327fb7b3c12afa9b2805734614f11b91"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"3698758aaddd1382893f8bbb932aabc30da29b60","unresolved":false,"context_lines":[{"line_number":19,"context_line":"template \u003d \"\"\""},{"line_number":20,"context_line":"OS_DISTRO\u003d\"{0}\""},{"line_number":21,"context_line":"OS_VERSION\u003d\"{1}\""},{"line_number":22,"context_line":"OS_CODENAME\u003d\"{2}\""},{"line_number":23,"context_line":"\"\"\".format(*platform.linux_distribution())"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"print(template)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_ddc94a27","line":22,"in_reply_to":"7a2fa921_adfc6ab8","updated":"2015-10-10 19:47:32.000000000","message":"The variables are pulled into scripts-library.sh, so it\u0027s more than just printing.","commit_id":"b82e991a327fb7b3c12afa9b2805734614f11b91"},{"author":{"_account_id":538,"name":"Major Hayden","email":"major@mhtx.net","username":"rackerhacker"},"change_message_id":"3698758aaddd1382893f8bbb932aabc30da29b60","unresolved":false,"context_lines":[{"line_number":19,"context_line":"template \u003d \"\"\""},{"line_number":20,"context_line":"OS_DISTRO\u003d\"{0}\""},{"line_number":21,"context_line":"OS_VERSION\u003d\"{1}\""},{"line_number":22,"context_line":"OS_CODENAME\u003d\"{2}\""},{"line_number":23,"context_line":"\"\"\".format(*platform.linux_distribution())"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"print(template)"}],"source_content_type":"text/x-python","patch_set":2,"id":"7a2fa921_1d4d82c3","line":22,"in_reply_to":"7a2fa921_d5c07352","updated":"2015-10-10 19:47:32.000000000","message":"Good idea. I changed it to HOST_","commit_id":"b82e991a327fb7b3c12afa9b2805734614f11b91"},{"author":{"_account_id":12606,"name":"Miguel Grinberg","email":"miguel.grinberg@gmail.com","username":"miguelgrinberg"},"change_message_id":"daa33155744d86acb35745c8a9c6579ac4dc5ed5","unresolved":false,"context_lines":[{"line_number":20,"context_line":"HOST_DISTRO\u003d\"{0}\""},{"line_number":21,"context_line":"HOST_VERSION\u003d\"{1}\""},{"line_number":22,"context_line":"HOST_CODENAME\u003d\"{2}\""},{"line_number":23,"context_line":"\"\"\".format(*platform.linux_distribution())"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"print(template)"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a2fa921_5d8c5ad9","line":23,"updated":"2015-10-10 20:01:23.000000000","message":"From a UX point of view, should this throw an error message if it runs on a non-Linux OS?\n\nAll these vars are going to be empty on Mac/Windows.","commit_id":"ebe44411820b1448fa0761f98ddc6702fc6852ea"}],"scripts/scripts-library.sh":[{"author":{"_account_id":15313,"name":"Toby Oxborrow","email":"tobyox@cisco.com","username":"toby.oxborrow"},"change_message_id":"f1223c746a5ae0f614642aa58cbb8d430ee6b2c8","unresolved":false,"context_lines":[{"line_number":327,"context_line":""},{"line_number":328,"context_line":"## Determine OS --------------------------------------------------------------"},{"line_number":329,"context_line":"# Determine the operating system of the base host"},{"line_number":330,"context_line":"# Adds the $OS_DISTRO, $OS_VERSION, and $OS_CODENAME bash variables."},{"line_number":331,"context_line":"eval \"$(python $(dirname ${0})/os-detection.py)\""},{"line_number":332,"context_line":"echo \"Detected ${HOST_DISTRO} ${HOST_VERSION} (codename: ${HOST_CODENAME})\""},{"line_number":333,"context_line":""}],"source_content_type":"text/x-sh","patch_set":4,"id":"7a2fa921_52c72745","line":330,"updated":"2015-10-13 06:51:55.000000000","message":"prefixes also need to be updated here","commit_id":"ebe44411820b1448fa0761f98ddc6702fc6852ea"}]}
