)]}'
{"tools/xenserver/cleanup_sm_locks.py":[{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"5d61ad62a3be29d0ccf64c0d9dba101fe853d6d8","unresolved":false,"context_lines":[{"line_number":25,"context_line":"This script should be run on the dom0 of the affected machine."},{"line_number":26,"context_line":"\"\"\""},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"from __future__ import print_function"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"import errno"},{"line_number":31,"context_line":"import optparse"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_9261703b","line":28,"updated":"2014-11-24 17:15:18.000000000","message":"Problem: This script is intended to run on dom0, which has Python 2.4 installed, if I recall correctly.  It\u0027s unlikely that print as a function is available in that version.","commit_id":"da03e5f70a9cdaace531557569a36d61d08ff192"}],"tools/xenserver/stress_test.py":[{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"5d61ad62a3be29d0ccf64c0d9dba101fe853d6d8","unresolved":false,"context_lines":[{"line_number":75,"context_line":"    run(\"nova migrate %(server_name)s --poll\" % {\u0027server_name\u0027: server_name})"},{"line_number":76,"context_line":""},{"line_number":77,"context_line":"    cmd \u003d \"nova list | grep %(server_name)s | awk \u0027{print $6}\u0027\" \\"},{"line_number":78,"context_line":"          % {\u0027server_name\u0027: server_name}"},{"line_number":79,"context_line":"    proc \u003d subprocess.Popen(cmd, stdout\u003dsubprocess.PIPE, shell\u003dTrue)"},{"line_number":80,"context_line":"    stdout, stderr \u003d proc.communicate()"},{"line_number":81,"context_line":"    status \u003d stdout.strip()"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_3200bc33","line":78,"updated":"2014-11-24 17:15:18.000000000","message":"I really like to avoid backslashes where possible.  If you surround this clause in parentheses, you eliminate the need for a backslash.\n\n(I also have a slight preference for putting the operator (\u0027%\u0027) at the end of the preceding line, but that\u0027s just a femtonit.)","commit_id":"da03e5f70a9cdaace531557569a36d61d08ff192"}],"tools/xenserver/vm_vdi_cleaner.py":[{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"5d61ad62a3be29d0ccf64c0d9dba101fe853d6d8","unresolved":false,"context_lines":[{"line_number":36,"context_line":"from nova.virt import virtapi"},{"line_number":37,"context_line":"from nova.virt.xenapi import driver as xenapi_driver"},{"line_number":38,"context_line":""},{"line_number":39,"context_line":"from oslo.utils import timeutils"},{"line_number":40,"context_line":""},{"line_number":41,"context_line":""},{"line_number":42,"context_line":"cleaner_opts \u003d ["}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_728de4d2","line":39,"updated":"2014-11-24 17:15:18.000000000","message":"oslo.utils is highly unlikely to be available on dom0 of the xenserver.","commit_id":"da03e5f70a9cdaace531557569a36d61d08ff192"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"5d61ad62a3be29d0ccf64c0d9dba101fe853d6d8","unresolved":false,"context_lines":[{"line_number":170,"context_line":"                try:"},{"line_number":171,"context_line":"                    cur_vdi_rec \u003d call_xenapi(xenapi, \u0027VDI.get_record\u0027,"},{"line_number":172,"context_line":"                            cur_vdi_ref)"},{"line_number":173,"context_line":"                except XenAPI.Failure as e:"},{"line_number":174,"context_line":"                    if e.details[0] !\u003d \u0027HANDLE_INVALID\u0027:"},{"line_number":175,"context_line":"                        raise"},{"line_number":176,"context_line":"                    break"}],"source_content_type":"text/x-python","patch_set":1,"id":"5a890539_52a70850","line":173,"updated":"2014-11-24 17:15:18.000000000","message":"I don\u0027t believe Python 2.4 accepts this syntax.","commit_id":"da03e5f70a9cdaace531557569a36d61d08ff192"}]}
