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 committed by Colton Myers
parent 1c6c394d0e
commit c7db4350d5

View file

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