)]}'
{"scripts/set-os-type":[{"author":{"_account_id":1926,"name":"Derek Higgins","email":"derekh@redhat.com","username":"derekh"},"change_message_id":"b6965007264b0216c8ee399c304fca39fa648577","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_64dd40e0","line":35,"updated":"2014-09-03 11:12:18.000000000","message":"Is their quotes around sles (i.e. \"sles\"), I couldn\u0027t find out for sure but there seems to be from the examples I could find googling around.","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":360,"name":"Dan Prince","email":"dprince@redhat.com","username":"dan-prince"},"change_message_id":"f40715fa91d5396e9dbe509e408a33a3cafa4edc","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_7b44ec1a","line":35,"in_reply_to":"fa98f980_4a8765d7","updated":"2014-09-03 20:35:27.000000000","message":"Could we just assume that if it isn\u0027t opensuse it is sles?","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":2394,"name":"Adam Spiers","email":"aspiers@suse.com","username":"adam.spiers"},"change_message_id":"49487a14043abbbd7291c578fd3bd46a17bbadf1","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_4a8765d7","line":35,"in_reply_to":"fa98f980_64dd40e0","updated":"2014-09-03 12:16:39.000000000","message":"Actually /etc/os-release doesn\u0027t even exist on SLES11 SP3, so I\u0027m changing to a -1.","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"7567d377ed0c6f076cd4ec213c6c638855609ab2","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_42eb73db","line":35,"in_reply_to":"fa98f980_64dd40e0","updated":"2014-09-05 17:19:22.000000000","message":"yes, good point. this is how it would look like: \n\n\n  NAME\u003d\"SLES\"\n  VERSION\u003d\"12\"\n  VERSION_ID\u003d\"12\"\n  PRETTY_NAME\u003d\"SUSE Linux Enterprise Server 12\"\n  ID\u003d\"sles\"\n  ANSI_COLOR\u003d\"0;32\"\n  CPE_NAME\u003d\"cpe:/o:suse:sles:12\"","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":2394,"name":"Adam Spiers","email":"aspiers@suse.com","username":"adam.spiers"},"change_message_id":"3fb4d25cf762bc6f10e4dba4ebe7ade89e9c9833","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_eca81ddd","line":35,"in_reply_to":"fa98f980_7b44ec1a","updated":"2014-09-04 00:02:35.000000000","message":"Not in this block, which is predicated by the existence of /etc/os-release.\n\nI think it will be necessary to fallback to /etc/SuSE-release.","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"7567d377ed0c6f076cd4ec213c6c638855609ab2","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":33,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027opensuse\u0027"},{"line_number":34,"context_line":"    fi"},{"line_number":35,"context_line":"    if $(egrep -qx \"ID\u003dsles\" /etc/os-release); then"},{"line_number":36,"context_line":"        TRIPLEO_OS_FAMILY\u003d\u0027suse\u0027"},{"line_number":37,"context_line":"        TRIPLEO_OS_DISTRO\u003d\u0027sles\u0027"},{"line_number":38,"context_line":"    fi"}],"source_content_type":"application/x-shellscript","patch_set":1,"id":"fa98f980_87648db9","line":35,"in_reply_to":"fa98f980_eca81ddd","updated":"2014-09-05 17:19:22.000000000","message":"Adam, SUSE is not going to support SLES11 so the behavior is correct (it sets DISTRO to unsupported then). \n\nThis is intended for SLES12 and newer.","commit_id":"582125552eed9276c53b4f6c86ab8182423fc493"},{"author":{"_account_id":1926,"name":"Derek Higgins","email":"derekh@redhat.com","username":"derekh"},"change_message_id":"586b6a80caa0c0f18fadce574921c9421cdd4791","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"function get_os_release {"},{"line_number":31,"context_line":"    ("},{"line_number":32,"context_line":"        . /etc/os-release"},{"line_number":33,"context_line":"        echo $ID"},{"line_number":34,"context_line":"    )"},{"line_number":35,"context_line":"}"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"fa98f980_5b72564a","line":32,"updated":"2014-09-08 11:27:31.000000000","message":"Can you use source instead of the shorthand, to be consistent with the other scripts (select-cloud is the only script I can see using shorthand, /me will fix)","commit_id":"7f325203607c1d74624dd4e240f7665e47162ddb"},{"author":{"_account_id":6593,"name":"Dirk Mueller","email":"dirk@dmllr.de","username":"dmllr"},"change_message_id":"c33261c24c9698977067f899e01247d392618d4b","unresolved":false,"context_lines":[{"line_number":29,"context_line":""},{"line_number":30,"context_line":"function get_os_release {"},{"line_number":31,"context_line":"    ("},{"line_number":32,"context_line":"        . /etc/os-release"},{"line_number":33,"context_line":"        echo $ID"},{"line_number":34,"context_line":"    )"},{"line_number":35,"context_line":"}"}],"source_content_type":"application/x-shellscript","patch_set":2,"id":"fa98f980_ecb6abdb","line":32,"in_reply_to":"fa98f980_5b72564a","updated":"2014-09-10 08:04:42.000000000","message":"Done","commit_id":"7f325203607c1d74624dd4e240f7665e47162ddb"}]}
