qontract-reconcile 0.10.1rc194__py3-none-any.whl → 0.10.1rc195__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.
- {qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/RECORD +6 -6
- reconcile/utils/ocm_base_client.py +5 -11
- {qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: qontract-reconcile
|
3
|
-
Version: 0.10.
|
3
|
+
Version: 0.10.1rc195
|
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
|
{qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/RECORD
RENAMED
@@ -525,7 +525,7 @@ reconcile/utils/oc.py,sha256=AIkBSXLnsJCE_9HCMN66-QK359pMBNPs4Q2XPI9zjyU,64780
|
|
525
525
|
reconcile/utils/oc_connection_parameters.py,sha256=mUP0WtpozdFDufcdNKy2OGweRvI3Faq8YLiR0ngJYes,9799
|
526
526
|
reconcile/utils/oc_filters.py,sha256=RWn8pC5A7ZZT7C6WPq9bOw5KBNkiAb5puFSr_FpdAf8,1358
|
527
527
|
reconcile/utils/oc_map.py,sha256=nT69J5pdPeIDnIYjD9fwY6GkE3BMQCf-AF0rmHJuUNw,9068
|
528
|
-
reconcile/utils/ocm_base_client.py,sha256=
|
528
|
+
reconcile/utils/ocm_base_client.py,sha256=7WHzSQ2j3FhZ1d8DA9v2szfg0tpzavfGCaVgGkvoquY,5003
|
529
529
|
reconcile/utils/openshift_resource.py,sha256=fLqURJcjrg8kd9jxbJ91fJBB5woiB4KT_wMKyADzffo,24214
|
530
530
|
reconcile/utils/openssl.py,sha256=QVvhzhpChq_4Daf_5wE1qeZJr4thg3DDjJPn4bOPD4E,365
|
531
531
|
reconcile/utils/output.py,sha256=htcMXMe0y2dNnwu8MW8x0JZ5YBaEJRy5w4tR8yLF0OU,1738
|
@@ -614,8 +614,8 @@ tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
614
614
|
tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
|
615
615
|
tools/test/test_sd_app_sre_alert_report.py,sha256=JeLhgzpKCPgLvptwg_4ZvJHLVWKNG1T5845HXTkMBxA,1826
|
616
616
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
617
|
-
qontract_reconcile-0.10.
|
618
|
-
qontract_reconcile-0.10.
|
619
|
-
qontract_reconcile-0.10.
|
620
|
-
qontract_reconcile-0.10.
|
621
|
-
qontract_reconcile-0.10.
|
617
|
+
qontract_reconcile-0.10.1rc195.dist-info/METADATA,sha256=PUU-Wdx0R2NJQ6PZRfei54GtnyNCp2GZsMVHQn2PXvg,2320
|
618
|
+
qontract_reconcile-0.10.1rc195.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
619
|
+
qontract_reconcile-0.10.1rc195.dist-info/entry_points.txt,sha256=Af70EWPJxsTiCNF6gA-pWdw1A0Heqn-PZF-oBc5NmiU,302
|
620
|
+
qontract_reconcile-0.10.1rc195.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
621
|
+
qontract_reconcile-0.10.1rc195.dist-info/RECORD,,
|
@@ -89,23 +89,17 @@ class OCMBaseClient:
|
|
89
89
|
params_copy = params.copy()
|
90
90
|
params_copy["size"] = max_page_size
|
91
91
|
|
92
|
-
# fetch pages
|
93
|
-
records_seen = 0
|
94
92
|
while True:
|
95
|
-
rs = self.get(api_path, params=
|
93
|
+
rs = self.get(api_path, params=params_copy)
|
96
94
|
for item in rs.get("items", []):
|
97
95
|
yield item
|
98
|
-
total_records = rs.get("total", 0)
|
99
96
|
current_page = rs.get("page", 0)
|
100
97
|
records_on_page = rs.get("size", len(rs.get("items", [])))
|
101
|
-
|
102
|
-
if total_records > records_seen and (
|
103
|
-
max_pages and max_pages < current_page
|
104
|
-
):
|
105
|
-
# more page available
|
106
|
-
params_copy["page"] = current_page + 1
|
107
|
-
else:
|
98
|
+
if records_on_page < max_page_size:
|
108
99
|
return
|
100
|
+
if max_pages is not None and current_page >= max_pages:
|
101
|
+
return
|
102
|
+
params_copy["page"] = current_page + 1
|
109
103
|
|
110
104
|
def post(
|
111
105
|
self,
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc194.dist-info → qontract_reconcile-0.10.1rc195.dist-info}/top_level.txt
RENAMED
File without changes
|