qontract-reconcile 0.10.1rc733__py3-none-any.whl → 0.10.1rc734__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc733
3
+ Version: 0.10.1rc734
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -607,7 +607,7 @@ reconcile/utils/helpers.py,sha256=k9svgFFZG7H5FvHYY0g5jJyvgvh2UDZxf0Ib221teag,11
607
607
  reconcile/utils/imap_client.py,sha256=byFAJATbITJPsGECSbvXBOcCnoeTUpDFiEjzOAxLm_U,1975
608
608
  reconcile/utils/instrumented_wrappers.py,sha256=eVwMoa6FCrYxLv3RML3WpZF9qKVfCTjMxphgVXG03OM,1073
609
609
  reconcile/utils/jenkins_api.py,sha256=MyJSB_S3uYf3sXnt9t03-gZNQ7tbdd7Wusv3MoF2fRc,7113
610
- reconcile/utils/jira_client.py,sha256=2m512wPgbKCq8PIXRmqsowsQ2nm7FBXoMkIzRcIYnFs,7197
610
+ reconcile/utils/jira_client.py,sha256=KjsakExjlii6lkxUlHRScBtPG4wuomJOTIoNiM-edQw,7322
611
611
  reconcile/utils/jjb_client.py,sha256=Pdy0dLCFvD6GPCaC0tZydYgkVJPOxYXIiwWECZaFJBU,14551
612
612
  reconcile/utils/jsonpath.py,sha256=NRpAEijKN4cMDjo7qivNPqpm0__GQQ1TiE0PBEBO45s,5572
613
613
  reconcile/utils/jump_host.py,sha256=AdwmCZYNhRe53VwV2iAsUdVyUdVtSd4REmdThJDkM5w,4973
@@ -765,8 +765,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
765
765
  tools/test/test_qontract_cli.py,sha256=w2l4BHB09k1d-BGJ1jBUNCqDv7zkqYrMHojQXg-21kQ,4155
766
766
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
767
767
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
768
- qontract_reconcile-0.10.1rc733.dist-info/METADATA,sha256=vcNc4Ashu0DlVjZ-3ZtZRXdI1pZFea0gCObIeSf-MLg,2382
769
- qontract_reconcile-0.10.1rc733.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
770
- qontract_reconcile-0.10.1rc733.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
771
- qontract_reconcile-0.10.1rc733.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
772
- qontract_reconcile-0.10.1rc733.dist-info/RECORD,,
768
+ qontract_reconcile-0.10.1rc734.dist-info/METADATA,sha256=4yl8FRQHqk6s4yWQgBGblLVlgOJiOKeSuEo-S5mcl8I,2382
769
+ qontract_reconcile-0.10.1rc734.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
770
+ qontract_reconcile-0.10.1rc734.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
771
+ qontract_reconcile-0.10.1rc734.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
772
+ qontract_reconcile-0.10.1rc734.dist-info/RECORD,,
@@ -96,11 +96,12 @@ class JiraClient:
96
96
  if settings and settings["jiraWatcher"]:
97
97
  read_timeout = settings["jiraWatcher"]["readTimeout"]
98
98
  connect_timeout = settings["jiraWatcher"]["connectTimeout"]
99
- self.timeout = (read_timeout, connect_timeout)
100
99
  if not self.server:
101
100
  raise RuntimeError("JiraClient.server is not set.")
102
101
 
103
- self.jira = JIRA(self.server, token_auth=token_auth, timeout=self.timeout)
102
+ self.jira = JIRA(
103
+ self.server, token_auth=token_auth, timeout=(read_timeout, connect_timeout)
104
+ )
104
105
 
105
106
  @staticmethod
106
107
  def create(
@@ -215,7 +216,13 @@ class JiraClient:
215
216
  raise RuntimeError("JiraClient.server is not set.")
216
217
 
217
218
  # use anonymous access to get public projects
218
- jira_api_anon = JIRA(server=self.server, timeout=self.timeout)
219
+ jira_api_anon = JIRA(
220
+ server=self.server,
221
+ timeout=(
222
+ JiraClient.DEFAULT_READ_TIMEOUT,
223
+ JiraClient.DEFAULT_CONNECT_TIMEOUT,
224
+ ),
225
+ )
219
226
  return [project.key for project in jira_api_anon.projects()]
220
227
 
221
228
  def components(self) -> list[str]: