qontract-reconcile 0.10.2.dev496__py3-none-any.whl → 0.10.2.dev497__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.4
2
2
  Name: qontract-reconcile
3
- Version: 0.10.2.dev496
3
+ Version: 0.10.2.dev497
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Project-URL: homepage, https://github.com/app-sre/qontract-reconcile
6
6
  Project-URL: repository, https://github.com/app-sre/qontract-reconcile
@@ -98,7 +98,7 @@ reconcile/service_dependencies.py,sha256=KydjllianL0lUwhroBAPui7jrnhHSq7j2PB6CoV
98
98
  reconcile/signalfx_endpoint_monitoring.py,sha256=Nqgsg1cflSd2nNnm89y_e8c--7xLUqTrKOHkDs-qADE,2868
99
99
  reconcile/slack_base.py,sha256=I-msunWxfgu5bSwXYulGbtLjxUB_tRmTCAUCU-3nabI,3484
100
100
  reconcile/slack_usergroups.py,sha256=C36L64wb95tf2tIqJ8T1xXmREpxHvxbhnglk0QOfUVc,30939
101
- reconcile/slack_usergroups_api.py,sha256=NnO8Di6tt5yVJG0e-KnHgOOpQq5JhourwCMaMnNEhDw,24862
101
+ reconcile/slack_usergroups_api.py,sha256=4-UJTaGcAatcJADZTfeGlEnFH1vGDc7UL9YMfnav3Mo,24713
102
102
  reconcile/sql_query.py,sha256=Go_H36p3YTW4Xv-elYDxW_Fe6Q4ErFhD6eQoFh9Jylw,26424
103
103
  reconcile/status.py,sha256=h73oaSxO5sftEGqFrXVAlySBvNYPWpowDaYYplcky5A,565
104
104
  reconcile/status_board.py,sha256=iv2CR3IsX_uDY5aXHjTOySeTR5d3vsABykYNiYNjZew,15316
@@ -817,7 +817,7 @@ tools/saas_promotion_state/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
817
817
  tools/saas_promotion_state/saas_promotion_state.py,sha256=uQv2QJAmUXP1g2GPIH30WTlvL9soY6m9lefpZEVDM5w,3965
818
818
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
819
819
  tools/sre_checkpoints/util.py,sha256=KcYVfa3UmJHVP_ocgrKe8NkrO5IDB9aWEDydSokPcRk,975
820
- qontract_reconcile-0.10.2.dev496.dist-info/METADATA,sha256=7q7vn5y-O98q0hxYlvPs_S7639jsHomijUm-SiZIUzk,24958
821
- qontract_reconcile-0.10.2.dev496.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
822
- qontract_reconcile-0.10.2.dev496.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
823
- qontract_reconcile-0.10.2.dev496.dist-info/RECORD,,
820
+ qontract_reconcile-0.10.2.dev497.dist-info/METADATA,sha256=KJz6Gryp-w-RDUmtOsWLrt2N1yERCAkR9IulxDx68xA,24958
821
+ qontract_reconcile-0.10.2.dev497.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
822
+ qontract_reconcile-0.10.2.dev497.dist-info/entry_points.txt,sha256=5i9l54La3vQrDLAdwDKQWC0iG4sV9RRfOb1BpvzOWLc,698
823
+ qontract_reconcile-0.10.2.dev497.dist-info/RECORD,,
@@ -646,27 +646,26 @@ class SlackUsergroupsIntegration(
646
646
  return
647
647
 
648
648
  task = await self.reconcile(workspaces=workspaces, dry_run=dry_run)
649
- if dry_run:
650
- # wait for task completion and get the action list
651
- task_result = await slack_usergroups_task_status(
652
- client=self.qontract_api_client, task_id=task.id, timeout=300
653
- )
654
- if task_result.status == TaskStatus.PENDING:
655
- logging.error("Task did not complete within the timeout period")
656
- sys.exit(1)
657
-
658
- if task_result.actions:
659
- logging.info("Proposed actions:")
660
- for action in task_result.actions or []:
661
- if isinstance(action, SlackUsergroupActionUpdateUsers):
662
- logging.info(
663
- f"{action.usergroup=} {action.users_to_add=} {action.users_to_remove=}"
664
- )
665
- else:
666
- logging.info(action)
667
-
668
- if task_result.errors:
669
- logging.error(f"Errors encountered: {len(task_result.errors)}")
670
- for error in task_result.errors:
671
- logging.error(f" - {error}")
672
- sys.exit(1)
649
+
650
+ # wait for task completion and get the action list
651
+ task_result = await slack_usergroups_task_status(
652
+ client=self.qontract_api_client, task_id=task.id, timeout=300
653
+ )
654
+ if task_result.status == TaskStatus.PENDING:
655
+ logging.error("Task did not complete within the timeout period")
656
+ sys.exit(1)
657
+
658
+ if task_result.actions:
659
+ for action in task_result.actions or []:
660
+ if isinstance(action, SlackUsergroupActionUpdateUsers):
661
+ logging.info(
662
+ f"{action.usergroup=} {action.users_to_add=} {action.users_to_remove=}"
663
+ )
664
+ else:
665
+ logging.info(action)
666
+
667
+ if task_result.errors:
668
+ logging.error(f"Errors encountered: {len(task_result.errors)}")
669
+ for error in task_result.errors:
670
+ logging.error(f" - {error}")
671
+ sys.exit(1)