mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge branch '2015.8' into '2016.3'
No conflicts.
This commit is contained in:
commit
094731f4b6
2 changed files with 8 additions and 0 deletions
|
@ -519,6 +519,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:
|
||||
|
@ -1236,6 +1238,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:
|
||||
|
|
|
@ -17,6 +17,7 @@ ensure_in_syspath('../../')
|
|||
|
||||
# Import salt libs
|
||||
import integration
|
||||
import salt.utils
|
||||
import salt.ext.six as six
|
||||
from salt.modules import mysql as mysqlmod
|
||||
|
||||
|
@ -28,6 +29,9 @@ try:
|
|||
except ImportError:
|
||||
NO_MYSQL = True
|
||||
|
||||
if not salt.utils.which('mysqladmin'):
|
||||
NO_MYSQL = True
|
||||
|
||||
|
||||
@skipIf(
|
||||
NO_MYSQL,
|
||||
|
|
Loading…
Add table
Reference in a new issue