qontract-reconcile 0.10.1rc947__py3-none-any.whl → 0.10.1rc948__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.1rc947
3
+ Version: 0.10.1rc948
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
@@ -793,7 +793,7 @@ reconcile/utils/runtime/sharding.py,sha256=r0ieUtNed7NvknSw6qQrCkKpVXE1shuHGnfFc
793
793
  reconcile/utils/saasherder/__init__.py,sha256=J3MBZBFa5YmhqYm08QsjBXz8mFcVOCiOCkyIcw41t7E,343
794
794
  reconcile/utils/saasherder/interfaces.py,sha256=C2wrw34OXypshVocAsPrVZsSHptgw4g9u7Haa2wulZQ,9087
795
795
  reconcile/utils/saasherder/models.py,sha256=z8ln03zi2a8cu716NcNUDHp8Dv1VcVbhqdWVxCl7x9A,10148
796
- reconcile/utils/saasherder/saasherder.py,sha256=N7cDHs6lkY9Lejw2HDGPLA-onfcASIWn5Lj18IO-FO8,84413
796
+ reconcile/utils/saasherder/saasherder.py,sha256=BVGG0o6IQotX3zhTI1dewcfHtaoCQ_YYlmLd0oSRFfs,84444
797
797
  reconcile/utils/terraform/__init__.py,sha256=zNbiyTWo35AT1sFTElL2j_AA0jJ_yWE_bfFn-nD2xik,250
798
798
  reconcile/utils/terraform/config.py,sha256=5UVrd563TMcvi4ooa5JvWVDW1I3bIWg484u79evfV_8,164
799
799
  reconcile/utils/terraform/config_client.py,sha256=3gUIIIEv52Vx7-VgQ2FZYfCCrfqUv_5gw_TQ3mbLcTs,4666
@@ -844,8 +844,8 @@ tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jr
844
844
  tools/test/test_saas_promotion_state.py,sha256=dy4kkSSAQ7bC0Xp2CociETGN-2aABEfL6FU5D9Jl00Y,6056
845
845
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
846
846
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
847
- qontract_reconcile-0.10.1rc947.dist-info/METADATA,sha256=QNbbPwtFuuLOZcxaB5ZtfE7CwXA1JNufPkLI1Lu6h6U,2262
848
- qontract_reconcile-0.10.1rc947.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
- qontract_reconcile-0.10.1rc947.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
- qontract_reconcile-0.10.1rc947.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
- qontract_reconcile-0.10.1rc947.dist-info/RECORD,,
847
+ qontract_reconcile-0.10.1rc948.dist-info/METADATA,sha256=EANO3eIGME2obDm2HO01Vd2LeR5lLaf6_JBfi6ZJEew,2262
848
+ qontract_reconcile-0.10.1rc948.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
849
+ qontract_reconcile-0.10.1rc948.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
850
+ qontract_reconcile-0.10.1rc948.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
851
+ qontract_reconcile-0.10.1rc948.dist-info/RECORD,,
@@ -769,7 +769,7 @@ class SaasHerder: # pylint: disable=too-many-public-methods
769
769
  self, url: str, path: str, ref: str, github: Github
770
770
  ) -> tuple[list[Any], str]:
771
771
  commit_sha = self._get_commit_sha(url, ref, github)
772
- resources = []
772
+ resources: list[Any] = []
773
773
  if "github" in url:
774
774
  repo_name = url.rstrip("/").replace("https://github.com/", "")
775
775
  repo = github.get_repo(repo_name)
@@ -781,8 +781,8 @@ class SaasHerder: # pylint: disable=too-many-public-methods
781
781
  file_contents_decoded = self._get_file_contents_github(
782
782
  repo, file_path, commit_sha
783
783
  )
784
- resource = yaml.safe_load(file_contents_decoded)
785
- resources.append(resource)
784
+ result_resources = yaml.safe_load_all(file_contents_decoded)
785
+ resources.extend(result_resources)
786
786
  elif "gitlab" in url:
787
787
  if not self.gitlab:
788
788
  raise Exception("gitlab is not initialized")