mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
don't break older returners right now
This commit is contained in:
parent
60ffad5126
commit
cfcacf953a
1 changed files with 8 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue