Merge pull request #24809 from jodv/single_item_master_list

Correctly create single item list for failover master type with string value for master opt
This commit is contained in:
Mike Place 2015-06-19 09:22:20 -06:00
commit 4c5a708599

View file

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