Fix regression in scanning for state with 'name' param

6d747df broke this by returing the name being searched for instead of
the state ID, causing the traceback found in #30820.

This fixes #30820 by returning the state ID and not the desired name.
This commit is contained in:
Erik Johnson 2016-02-02 14:48:39 -06:00
parent b25b845d05
commit be3b8e2be6

View File

@ -190,7 +190,7 @@ def find_name(name, state, high):
if len(arg) != 1: if len(arg) != 1:
continue continue
if arg[next(iter(arg))] == name: if arg[next(iter(arg))] == name:
ext_id.append((name, state)) ext_id.append((nid, state))
return ext_id return ext_id