qontract-reconcile 0.10.1rc849__py3-none-any.whl → 0.10.1rc850__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.1rc849
3
+ Version: 0.10.1rc850
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
@@ -601,7 +601,7 @@ reconcile/typed_queries/jiralert_settings.py,sha256=y59S5xvYmuaGxszzfKhVLjbCyDwK
601
601
  reconcile/typed_queries/namespaces.py,sha256=vItPrn7sfcHOix-VvkzQkf54_ljzI_ymyxh5esdBJ5Y,262
602
602
  reconcile/typed_queries/namespaces_minimal.py,sha256=rUtqNQ0ORXXUTQfnpsMURymAJ4gYtE77V-Lb3LiJFEY,278
603
603
  reconcile/typed_queries/ocm.py,sha256=aTXW9NaMpMq-90sBUAUQmGPtk6Hnsk2rzSbXv3pD8dY,312
604
- reconcile/typed_queries/pagerduty_instances.py,sha256=QCHqEAakiH6eSob0Pnnn3IBd8Ga0zpEp1Z6Qu3v2uH4,733
604
+ reconcile/typed_queries/pagerduty_instances.py,sha256=q0HbSuLGCMqpLphtnvCdBRKK1o10KNhPvgKNEMCUhyo,517
605
605
  reconcile/typed_queries/quay.py,sha256=OvkSDDbS3o4a4W5MqVxTAVmo47p5XegeoEVNiuqsevg,242
606
606
  reconcile/typed_queries/repos.py,sha256=9I2rJ5VrwB1boJEuaa8A3QWJ1N7wMVbkwfgFadfSrwo,858
607
607
  reconcile/typed_queries/reserved_networks.py,sha256=SWukbbEeW6acyP89v0DYd1WgbcBlUDuo-y3e27eN_vs,390
@@ -834,8 +834,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
834
834
  tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
835
835
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
836
836
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
837
- qontract_reconcile-0.10.1rc849.dist-info/METADATA,sha256=9kea4FnbZH5tdRzVr18mi4qWWVKwjRXh37Ge0Qo2PzA,2273
838
- qontract_reconcile-0.10.1rc849.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
839
- qontract_reconcile-0.10.1rc849.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
840
- qontract_reconcile-0.10.1rc849.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
841
- qontract_reconcile-0.10.1rc849.dist-info/RECORD,,
837
+ qontract_reconcile-0.10.1rc850.dist-info/METADATA,sha256=2AQhJlZY2SAm-W89c68dz2HN_BAkeautQ3Zafjb4y9o,2273
838
+ qontract_reconcile-0.10.1rc850.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
839
+ qontract_reconcile-0.10.1rc850.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
840
+ qontract_reconcile-0.10.1rc850.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
841
+ qontract_reconcile-0.10.1rc850.dist-info/RECORD,,
@@ -6,7 +6,6 @@ from reconcile.gql_definitions.common.pagerduty_instances import (
6
6
  query,
7
7
  )
8
8
  from reconcile.utils import gql
9
- from reconcile.utils.exceptions import AppInterfaceSettingsError
10
9
 
11
10
 
12
11
  def get_pagerduty_instances(
@@ -16,7 +15,4 @@ def get_pagerduty_instances(
16
15
  if not query_func:
17
16
  gqlapi = gql.get_api()
18
17
  query_func = gqlapi.query
19
- pagerduty_instances = query(query_func=query_func).pagerduty_instances
20
- if not pagerduty_instances:
21
- raise AppInterfaceSettingsError("no pagerduty instance(s) configured")
22
- return pagerduty_instances
18
+ return query(query_func=query_func).pagerduty_instances or []