mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue