qontract-reconcile 0.9.1rc294__py3-none-any.whl → 0.9.1rc295__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.9.1rc294
3
+ Version: 0.9.1rc295
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
@@ -119,7 +119,7 @@ reconcile/sql_query.py,sha256=AtJQseNBzigiY3Ii4Je0DDBDj8sxzsCTaxLyIaXkPcU,22432
119
119
  reconcile/status.py,sha256=tRYtzPFsGETOfN57rcsLIJRl7cZVFkfQXNsUtoeJ7ns,545
120
120
  reconcile/template_tester.py,sha256=vZz8GM46waQUGd3OVnhW5OLTqctFMH_Hh1QXxT5hduM,2384
121
121
  reconcile/terraform_aws_route53.py,sha256=06VIlIb95BzVkxV_1TPiaY9sQO-TkvQXL4V_qzuXxxA,9814
122
- reconcile/terraform_cloudflare_dns.py,sha256=cCwDaFZ9KGNsCjVnz89LMWi5V8mhkbAvQE40g30YVqU,14647
122
+ reconcile/terraform_cloudflare_dns.py,sha256=Jc8YLLc6sxov8U3onTQsFcoK5IuQW0Jn4--4ZN7HRAA,14552
123
123
  reconcile/terraform_cloudflare_resources.py,sha256=BQg12mHm1iaxf086FFPZutPbWKUMaddqu-nREPR8ptA,14887
124
124
  reconcile/terraform_cloudflare_users.py,sha256=lTbrxi8OtW9Pfcr7Yp-70ihldMQKx9dJ7ZgbGHey1XE,13627
125
125
  reconcile/terraform_resources.py,sha256=gQ-LT0TGwf9OR4RF5EWDmNHUnKWnbhrIMtyIdUgP4D4,16782
@@ -577,8 +577,8 @@ tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y
577
577
  tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
578
578
  tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
579
579
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
580
- qontract_reconcile-0.9.1rc294.dist-info/METADATA,sha256=em0hOB9rEHOy04LHmQ0cxqOb4VfdGQeLxCP_Ez88aQw,2287
581
- qontract_reconcile-0.9.1rc294.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
582
- qontract_reconcile-0.9.1rc294.dist-info/entry_points.txt,sha256=aIVvB7OTCxYu0QkONzBPfFEyg68Pr8KUVKEEm4ChDVc,333
583
- qontract_reconcile-0.9.1rc294.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
584
- qontract_reconcile-0.9.1rc294.dist-info/RECORD,,
580
+ qontract_reconcile-0.9.1rc295.dist-info/METADATA,sha256=zGQCGGR7VxEsSnbuXRTqh4OJADAAWItIlIXoYMsPhg0,2287
581
+ qontract_reconcile-0.9.1rc295.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
582
+ qontract_reconcile-0.9.1rc295.dist-info/entry_points.txt,sha256=aIVvB7OTCxYu0QkONzBPfFEyg68Pr8KUVKEEm4ChDVc,333
583
+ qontract_reconcile-0.9.1rc295.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
584
+ qontract_reconcile-0.9.1rc295.dist-info/RECORD,,
@@ -87,12 +87,8 @@ class TerraformCloudflareDNSIntegration(
87
87
  def name(self) -> str:
88
88
  return self.qontract_integration.replace("_", "-")
89
89
 
90
- def run(self, dry_run: bool) -> None:
91
- self.run_with_defer(dry_run) # pylint: disable=no-value-for-parameter
92
-
93
90
  @defer
94
- def run_with_defer(self, dry_run: bool, defer: Callable) -> None:
95
-
91
+ def run(self, dry_run: bool, defer: Optional[Callable] = None) -> None:
96
92
  settings = self._get_app_interface_settings()
97
93
 
98
94
  if not settings.settings:
@@ -173,7 +169,8 @@ class TerraformCloudflareDNSIntegration(
173
169
  self.params.thread_pool_size,
174
170
  )
175
171
 
176
- defer(tf.cleanup)
172
+ if defer:
173
+ defer(tf.cleanup)
177
174
 
178
175
  disabled_deletions_detected, err = tf.plan(self.params.enable_deletion)
179
176
  if err: