schedule should be a dict

set scheduler configuration in salt.config
This commit is contained in:
Daniel Wallace 2017-11-02 11:01:44 -06:00
parent bb1f8dceaf
commit 855d933cb7
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -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()