qontract-reconcile 0.10.1rc731__py3-none-any.whl → 0.10.1rc732__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.1rc731
3
+ Version: 0.10.1rc732
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=geozBG45AM_z2Fisrhqw-fSkmvikyrKIb9XARn-Q-AE,7186
610
+ reconcile/utils/jira_client.py,sha256=2m512wPgbKCq8PIXRmqsowsQ2nm7FBXoMkIzRcIYnFs,7197
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=UEwAW7PA_GIrbqzaLxpkCxbuVjEFLNvnVG-6VyoCGIc,4147
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.1rc731.dist-info/METADATA,sha256=sursdK9csIPxAOvipsmyKrcSuaHrms1FagDc5yNyBRI,2382
769
- qontract_reconcile-0.10.1rc731.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
770
- qontract_reconcile-0.10.1rc731.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
771
- qontract_reconcile-0.10.1rc731.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
772
- qontract_reconcile-0.10.1rc731.dist-info/RECORD,,
768
+ qontract_reconcile-0.10.1rc732.dist-info/METADATA,sha256=4rmuaKPir4Lu33OJNP5bw1qkG75V2Wy6G17RbQ99SkM,2382
769
+ qontract_reconcile-0.10.1rc732.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
770
+ qontract_reconcile-0.10.1rc732.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
771
+ qontract_reconcile-0.10.1rc732.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
772
+ qontract_reconcile-0.10.1rc732.dist-info/RECORD,,
@@ -96,14 +96,11 @@ 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)
99
100
  if not self.server:
100
101
  raise RuntimeError("JiraClient.server is not set.")
101
102
 
102
- self.jira = JIRA(
103
- self.server,
104
- token_auth=token_auth,
105
- timeout=(read_timeout, connect_timeout),
106
- )
103
+ self.jira = JIRA(self.server, token_auth=token_auth, timeout=self.timeout)
107
104
 
108
105
  @staticmethod
109
106
  def create(
@@ -218,7 +215,7 @@ class JiraClient:
218
215
  raise RuntimeError("JiraClient.server is not set.")
219
216
 
220
217
  # use anonymous access to get public projects
221
- jira_api_anon = JIRA(server=self.server)
218
+ jira_api_anon = JIRA(server=self.server, timeout=self.timeout)
222
219
  return [project.key for project in jira_api_anon.projects()]
223
220
 
224
221
  def components(self) -> list[str]: