mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #34803 from junovitch/issue_24744
salt/state.py: set `chunk['order'] = 0' with `order: first'; fixes #24744
This commit is contained in:
commit
6636f2b449
1 changed files with 4 additions and 0 deletions
|
@ -512,6 +512,8 @@ class Compiler(object):
|
|||
if not isinstance(chunk['order'], (int, float)):
|
||||
if chunk['order'] == 'last':
|
||||
chunk['order'] = cap + 1000000
|
||||
elif chunk['order'] == 'first':
|
||||
chunk['order'] = 0
|
||||
else:
|
||||
chunk['order'] = cap
|
||||
if 'name_order' in chunk:
|
||||
|
@ -1140,6 +1142,8 @@ class State(object):
|
|||
if not isinstance(chunk['order'], (int, float)):
|
||||
if chunk['order'] == 'last':
|
||||
chunk['order'] = cap + 1000000
|
||||
elif chunk['order'] == 'first':
|
||||
chunk['order'] = 0
|
||||
else:
|
||||
chunk['order'] = cap
|
||||
if 'name_order' in chunk:
|
||||
|
|
Loading…
Add table
Reference in a new issue