mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #44385 from gtmanfred/schedule
schedule should be a dict in opts
This commit is contained in:
commit
1032ca3290
1 changed files with 5 additions and 4 deletions
|
@ -977,6 +977,9 @@ VALID_OPTS = {
|
|||
# (in other words, require that minions have 'minion_sign_messages'
|
||||
# turned on)
|
||||
'require_minion_sign_messages': bool,
|
||||
|
||||
# Scheduler should be a dictionary
|
||||
'schedule': dict,
|
||||
}
|
||||
|
||||
# default configurations
|
||||
|
@ -1223,6 +1226,7 @@ DEFAULT_MINION_OPTS = {
|
|||
'cache': 'localfs',
|
||||
'salt_cp_chunk_size': 65536,
|
||||
'minion_sign_messages': False,
|
||||
'schedule': {},
|
||||
}
|
||||
|
||||
DEFAULT_MASTER_OPTS = {
|
||||
|
@ -1504,6 +1508,7 @@ DEFAULT_MASTER_OPTS = {
|
|||
'salt_cp_chunk_size': 98304,
|
||||
'require_minion_sign_messages': False,
|
||||
'drop_messages_signature_fail': False,
|
||||
'schedule': {},
|
||||
}
|
||||
|
||||
|
||||
|
@ -3338,10 +3343,6 @@ def apply_minion_config(overrides=None,
|
|||
if 'ipc_write_buffer' not in overrides:
|
||||
opts['ipc_write_buffer'] = 0
|
||||
|
||||
# if there is no schedule option yet, add an empty scheduler
|
||||
if 'schedule' not in opts:
|
||||
opts['schedule'] = {}
|
||||
|
||||
# Make sure hash_type is lowercase
|
||||
opts['hash_type'] = opts['hash_type'].lower()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue