Skip to content

Commit

Permalink
Give users ability to disable update check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Jones committed Jan 23, 2015
1 parent c3d7213 commit 37befbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ class JIRA(object):
"resilient": True,
"async": False,
"client_cert": None,
"check_update": True,
"headers": {
'X-Atlassian-Token': 'no-check',
'Cache-Control': 'no-cache',
Expand Down Expand Up @@ -211,7 +212,7 @@ def __init__(self, server=None, options=None, basic_auth=None, oauth=None, valid
globals()['logging'].error("invalid server_info: %s", si)
raise e

if not JIRA.checked_version:
if options['check_update'] and not JIRA.checked_version:
self._check_update_()
JIRA.checked_version = True

Expand Down

0 comments on commit 37befbd

Please sign in to comment.