def METHOD_NAME(self, host, result):
    account_info = self.name_recorder_mapper.get(host)
    if not account_info:
        return
    account = account_info['account']
    new_secret = account_info['new_secret']
    if not account:
        return
    account.secret = new_secret
    account.save(update_fields=['secret'])
    account.set_connectivity(Connectivity.OK)