def on_complete(operation_result, status_code, description, wrapped_message): result = constants.MgmtExecuteResult(operation_result) if result != constants.MgmtExecuteResult.Ok: _logger.error( "Failed to complete mgmt operation.\nStatus code: {}\nMessage: {}" .format(status_code, description)) self._responses[operation_id] = Message(message=wrapped_message)
def on_complete(operation_result, status_code, description, wrapped_message): result = constants.MgmtExecuteResult(operation_result) if result != constants.MgmtExecuteResult.Ok: _logger.error( "Failed to complete mgmt operation.\nStatus code: %r\nMessage: %r", status_code, description) message = Message( message=wrapped_message) if wrapped_message else None self._responses[operation_id] = (status_code, message, description)