)]}'
{"nova_powervm/virt/powervm/vm.py":[{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"bf9ccfd959019060ffbb0530eaac8d93f5cebc10","unresolved":false,"context_lines":[{"line_number":485,"context_line":"                            log_errors\u003dlog_errors)"},{"line_number":486,"context_line":""},{"line_number":487,"context_line":"def _instance_exists(adapter, lpar_uuid, log_errors\u003dFalse):"},{"line_number":488,"context_line":"    \"\"\"Determine if an instance exists based on lpar_uuid"},{"line_number":489,"context_line":""},{"line_number":490,"context_line":"    :param adapter: The adapater for the pypowervm API"},{"line_number":491,"context_line":"    :param lpar_uuid: UUID of the lpar"}],"source_content_type":"text/x-python","patch_set":7,"id":"3aaa91ec_b7a1b848","line":488,"updated":"2016-06-29 17:10:03.000000000","message":"Needs to end with a period.","commit_id":"19b16904b8ae3c0a572d6ce02831cd13fd37d6a9"},{"author":{"_account_id":14070,"name":"Eric Fried","email":"openstack@fried.cc","username":"efried"},"change_message_id":"3a06123c2849deb9d227148547c8675ae0e4f74d","unresolved":false,"context_lines":[{"line_number":626,"context_line":"    return _rename(entry)"},{"line_number":627,"context_line":""},{"line_number":628,"context_line":""},{"line_number":629,"context_line":"@lockutils.synchronized(\u0027dlt_lpar\u0027)"},{"line_number":630,"context_line":"def dlt_lpar(adapter, lpar_uuid):"},{"line_number":631,"context_line":"    \"\"\"Delete an LPAR"},{"line_number":632,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"1aa78d24_d59f434e","line":629,"updated":"2016-07-05 16:16:57.000000000","message":"This will serialize *all* LPAR deletions.  If it was a really quick operation, that *might* be acceptable (would still make me pretty nervous), but closing a vterm takes a nontrivial amount of time.  Consider locking on the LPAR UUID specifically, from within the method.","commit_id":"19b16904b8ae3c0a572d6ce02831cd13fd37d6a9"},{"author":{"_account_id":8190,"name":"Drew Thorstensen (thorst)","email":"thorst@us.ibm.com","username":"thorst"},"change_message_id":"bf9ccfd959019060ffbb0530eaac8d93f5cebc10","unresolved":false,"context_lines":[{"line_number":639,"context_line":"    try:"},{"line_number":640,"context_line":"        LOG.info(_LI(\u0027Deleting virtual machine. LPARID: %s\u0027), lpar_uuid)"},{"line_number":641,"context_line":""},{"line_number":642,"context_line":"        # Ensure that the instance exists"},{"line_number":643,"context_line":"        if(_instance_exists(adapter, lpar_uuid)):"},{"line_number":644,"context_line":"            # Ensure any vterms are closed.  Will no-op otherwise."},{"line_number":645,"context_line":"            vterm.close_vterm(adapter, lpar_uuid)"},{"line_number":646,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"3aaa91ec_974bdc86","line":643,"range":{"start_line":642,"start_character":0,"end_line":643,"end_character":49},"updated":"2016-06-29 17:10:03.000000000","message":"I\u0027d recommend:\n\nif not _instance_exists(adapter, lpar_uuid):\n    LOG.warn(_LW(\"Instance to delete was not found on hypervisor.  No-op.\"))\n    return None\n\n\nAlso, the issue now is that dlt_lpar used to always return something.  Now it doesn\u0027t.  What calls it?  Does something fail if we return None?","commit_id":"19b16904b8ae3c0a572d6ce02831cd13fd37d6a9"}]}
