don't break older returners right now

This commit is contained in:
Daniel Wallace 2018-06-26 11:26:36 -05:00
parent 60ffad5126
commit cfcacf953a
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -14,10 +14,17 @@ from salt.ext import six
LAST_JID_DATETIME = None
def gen_jid(opts):
def gen_jid(opts=None):
'''
Generate a jid
'''
if opts is None:
salt.utils.versions.warn_until(
'Sodium',
'The `opts` argument was not passed into salt.utils.jid.gen_jid(). '
'This will be required starting in {version}.'
)
opts = {}
global LAST_JID_DATETIME # pylint: disable=global-statement
if not opts.get('unique_jid', False):