human
Solve the following python programming problem given the following code:
def querySummarySync(self, soap_data, request_info) : 
    def gotReservations(reservations, header) : 
        soap_header_element = helper.createProviderHeader (header.requester_nsa, header.provider_nsa, correlation_id = header.correlation_id) 
        qs_reservations = queryhelper.buildQuerySummaryResultType (reservations) 
        qsct = nsiconnection.QuerySummaryConfirmedType (qs_reservations) 
        payload = minisoap.createSoapPayload (qsct.xml (nsiconnection.querySummarySyncConfirmed), soap_header_element) 
        return payload 
(header, query) = helper.parseRequest (soap_data) 
    d = self.provider.querySummarySync (header, query.connectionId, query.globalReservationId, request_info) 
    d.addCallbacks (request_info, self._createSOAPFault, callbackArgs = (header,), errbackArgs = (header.provider_nsa,)) 
    return d 

    
    

    Fix the buggy line: d.addCallbacks (request_info, self._createSOAPFault, callbackArgs = (header,), errbackArgs = (header.provider_nsa,))
assistant
#Here is Python code to fix the buggy line: d.

d.addCallbacks (def gotReservations(, self._createSOAPFault, callbackArgs = (header,), errbackArgs = (header.provider_nsa,))