mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
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:
parent
b25b845d05
commit
be3b8e2be6
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user