Merge pull request #23637 from cachedout/issue_23611

Convert str master to list
This commit is contained in:
Nicole Thomas 2015-05-13 09:08:19 -06:00
commit bd9b94ba8c

View file

@ -711,6 +711,10 @@ class Minion(MinionBase):
' {0}'.format(opts['master']))
if opts['master_shuffle']:
shuffle(opts['master'])
elif isinstance(opts['master'], str):
# We have a string, but a list was what was intended. Convert.
# See issue 23611 for details
opts['master'] = list(opts['master'])
elif opts['__role'] == 'syndic':
log.info('Syndic setting master_syndic to \'{0}\''.format(opts['master']))