Set auth retry count to 0 if multimaster mode is failover.

Backport of PR #31382 into 2015.8.
This commit is contained in:
Dmitry Kuzmenko 2016-02-24 19:00:32 +03:00
parent b84908d51f
commit 93d34a2573

View file

@ -411,6 +411,7 @@ class MinionBase(object):
' {0}'.format(opts['master']))
if opts['master_shuffle']:
shuffle(opts['master'])
opts['auth_tries'] = 0
# if opts['master'] is a str and we have never created opts['master_list']
elif isinstance(opts['master'], str) and ('master_list' not in opts):
# We have a string, but a list was what was intended. Convert.