qontract-reconcile 0.10.1rc837__py3-none-any.whl → 0.10.1rc838__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.1rc837
3
+ Version: 0.10.1rc838
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
@@ -443,7 +443,7 @@ reconcile/skupper_network/site_controller.py,sha256=A3K-62BjJ5HiFVydV0ouGoD1NwrO
443
443
  reconcile/statuspage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
444
444
  reconcile/statuspage/atlassian.py,sha256=5awxH9ovbtgis_N4aabBvrlo2ZyLNLaO6ezIYDgVq0Y,18571
445
445
  reconcile/statuspage/integration.py,sha256=hsazrQMceJbr61nEkJLxJbHhudTGtFuH0mlCo66-2ug,711
446
- reconcile/statuspage/page.py,sha256=WHDwV2PXEo4WwI2EgPOkS6j_T7geZEDXTgSaqpDo75U,5101
446
+ reconcile/statuspage/page.py,sha256=vnrifINUNKaBRDauYDjme6sEdTeRMgwsZAifDxlkYec,5248
447
447
  reconcile/statuspage/state.py,sha256=HD9EOoKm_nEqCMLIwW809En3cq5VhyzKJPUbsh-bae8,1617
448
448
  reconcile/statuspage/status.py,sha256=mfRJ_tW7jM4_Vy_1cc8C0fKJEoA2GwrA3gJeV1KImAw,2834
449
449
  reconcile/statuspage/integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -820,8 +820,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
820
820
  tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
821
821
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
822
822
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
823
- qontract_reconcile-0.10.1rc837.dist-info/METADATA,sha256=9bnPTVy0-Kre5e1J8MwqONGGdxi5aorSLSbu6VdqDzA,2275
824
- qontract_reconcile-0.10.1rc837.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
825
- qontract_reconcile-0.10.1rc837.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
826
- qontract_reconcile-0.10.1rc837.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
827
- qontract_reconcile-0.10.1rc837.dist-info/RECORD,,
823
+ qontract_reconcile-0.10.1rc838.dist-info/METADATA,sha256=E7EKNWOLtL6qDSkQcbJe9jqzBYjff4eZdTXXC04JyQY,2275
824
+ qontract_reconcile-0.10.1rc838.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
825
+ qontract_reconcile-0.10.1rc838.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
826
+ qontract_reconcile-0.10.1rc838.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
827
+ qontract_reconcile-0.10.1rc838.dist-info/RECORD,,
@@ -145,13 +145,16 @@ class StatusMaintenance(BaseModel):
145
145
  for c in page_components
146
146
  if c.app.name in affected_services
147
147
  ]
148
- statuspage_announcements = [
149
- StatusMaintenanceAnnouncement.init_from_announcement(
150
- cast(MaintenanceStatuspageAnnouncementV1, m)
151
- )
152
- for m in maintenance.announcements or []
153
- if m.provider == PROVIDER_NAME
154
- ]
148
+ if affected_components:
149
+ statuspage_announcements = [
150
+ StatusMaintenanceAnnouncement.init_from_announcement(
151
+ cast(MaintenanceStatuspageAnnouncementV1, m)
152
+ )
153
+ for m in maintenance.announcements or []
154
+ if m.provider == PROVIDER_NAME
155
+ ]
156
+ else:
157
+ statuspage_announcements = [StatusMaintenanceAnnouncement()]
155
158
  if len(statuspage_announcements) != 1:
156
159
  raise ValueError(
157
160
  f"Maintenanace announcements must include exactly one item of provider {PROVIDER_NAME}"