qontract-reconcile 0.9.1rc189__py3-none-any.whl → 0.9.1rc190__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.1rc189
3
+ Version: 0.9.1rc190
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
@@ -488,7 +488,7 @@ release/test_version.py,sha256=jOMn3Qx-mZC5pnJR0LU9ieIdNaYZSmr1kQ6aCkPngAU,2053
488
488
  release/version.py,sha256=Ud36t9FxGHLubMrE2o5aaaZRGB9_9hU_z0RN9go0TQM,3876
489
489
  tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
490
490
  tools/app_interface_reporter.py,sha256=DIWu0dpBDk_cBweaf2Qun5HnyrLER1bu-pv3kHM5YGY,21861
491
- tools/qontract_cli.py,sha256=rCDP3TO0VFYIOuUBAV4swFrzeNaRIgfOpiKPReq0mmo,83193
491
+ tools/qontract_cli.py,sha256=f9HQWdeB1OSjJjMSOFAGkwKsZAPtvgojMp3iPpHxC_E,83197
492
492
  tools/cli_commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
493
493
  tools/cli_commands/gpg_encrypt.py,sha256=JryinrDdvztN931enUY3FuDeLVnfs6y58mnK7itNK6Y,4940
494
494
  tools/sre_checkpoints/__init__.py,sha256=CDaDaywJnmRCLyl_NCcvxi-Zc0hTi_3OdwKiFOyS39I,145
@@ -496,8 +496,8 @@ tools/sre_checkpoints/util.py,sha256=zEDbGr18ZeHNQwW8pUsr2JRjuXIPz--WAGJxZo9sv_Y
496
496
  tools/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
497
497
  tools/test/test_qontract_cli.py,sha256=awwTHEc2DWlykuqGIYM0WOBoSL0KRnOraCLk3C7izis,1401
498
498
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
499
- qontract_reconcile-0.9.1rc189.dist-info/METADATA,sha256=mDAFRWNeR4Jv8Bd3vGuopyvJelZWOrAo_PyJdr0VpFI,2212
500
- qontract_reconcile-0.9.1rc189.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
501
- qontract_reconcile-0.9.1rc189.dist-info/entry_points.txt,sha256=3BPvsRryM1C4S_mb5kXmP5AVv-wJBzVCrOJyv6qUmc0,195
502
- qontract_reconcile-0.9.1rc189.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
503
- qontract_reconcile-0.9.1rc189.dist-info/RECORD,,
499
+ qontract_reconcile-0.9.1rc190.dist-info/METADATA,sha256=iur9PZ9aAI70Oq3i8ratlEB4PG4G3zdIOOvE1GDmq4M,2212
500
+ qontract_reconcile-0.9.1rc190.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
501
+ qontract_reconcile-0.9.1rc190.dist-info/entry_points.txt,sha256=3BPvsRryM1C4S_mb5kXmP5AVv-wJBzVCrOJyv6qUmc0,195
502
+ qontract_reconcile-0.9.1rc190.dist-info/top_level.txt,sha256=j0CHPIc8TsVRB50wOz_jhxjjaRyCJB3NOQeXhuHS67c,34
503
+ qontract_reconcile-0.9.1rc190.dist-info/RECORD,,
tools/qontract_cli.py CHANGED
@@ -1216,13 +1216,15 @@ def cluster_openshift_resources(ctx):
1216
1216
  @get.command
1217
1217
  @click.pass_context
1218
1218
  def aws_terraform_resources(ctx):
1219
- gqlapi = gql.get_api()
1220
- namespaces = gqlapi.query(tfr.TF_NAMESPACES_QUERY)["namespaces"]
1219
+ namespaces = tfr.get_namespaces()
1221
1220
  columns = ["name", "total"]
1222
1221
  results = {}
1223
1222
  for ns_info in namespaces:
1224
1223
  specs = (
1225
- get_external_resource_specs(ns_info, provision_provider=PROVIDER_AWS) or []
1224
+ get_external_resource_specs(
1225
+ ns_info.dict(by_alias=True), provision_provider=PROVIDER_AWS
1226
+ )
1227
+ or []
1226
1228
  )
1227
1229
  for spec in specs:
1228
1230
  account = spec.provisioner_name