qontract-reconcile 0.10.1rc639__py3-none-any.whl → 0.10.1rc640__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.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/METADATA +1 -1
- {qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/RECORD +7 -7
- reconcile/terraform_resources.py +4 -2
- reconcile/test/test_terraform_resources.py +3 -3
- {qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/WHEEL +0 -0
- {qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/entry_points.txt +0 -0
- {qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/top_level.txt +0 -0
{qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.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.1rc640
|
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.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/RECORD
RENAMED
@@ -111,7 +111,7 @@ reconcile/terraform_cloudflare_dns.py,sha256=auU4bzeLwd4S8D8oqpqJbrCUoEdELXrgi7v
|
|
111
111
|
reconcile/terraform_cloudflare_resources.py,sha256=EbQQaoDnZ7brvRCpbFtwlD7KLk2hDVNcjhrJGaAywEk,15023
|
112
112
|
reconcile/terraform_cloudflare_users.py,sha256=1EbTHwJgiPkJpMP-Ag340QNgGK3mXn3dcC3DpLakudM,13987
|
113
113
|
reconcile/terraform_repo.py,sha256=c0GZFuY3rCm6VHjHqYbsgOHrEkRWKF_1LrMThsn2XDw,16127
|
114
|
-
reconcile/terraform_resources.py,sha256=
|
114
|
+
reconcile/terraform_resources.py,sha256=BN8XuJwjOt1ztruEAHydkd0YiBlb3fHZ7n0snZtRhck,19356
|
115
115
|
reconcile/terraform_tgw_attachments.py,sha256=mWr4UU_bNBu9YzPN1MqLQPNlg9FOY7qi5EqQgg7ykos,15938
|
116
116
|
reconcile/terraform_users.py,sha256=kXRUxCUchKCP2dbXXOzctynqMii4oyCP6bYZHQTrlTg,10202
|
117
117
|
reconcile/terraform_vpc_peerings.py,sha256=rnDH1u93OyzrBM8Hib0HwSnlxZtx4ScRQaZAcn3mx-k,25402
|
@@ -466,7 +466,7 @@ reconcile/test/test_terraform_cloudflare_dns.py,sha256=aQTXX8Vr4h9aWvJZTnpZEhMGY
|
|
466
466
|
reconcile/test/test_terraform_cloudflare_resources.py,sha256=NK_uktyWihkQ3gMN4bCaKerpi43CXAVYGIKTfcz05rY,13550
|
467
467
|
reconcile/test/test_terraform_cloudflare_users.py,sha256=RAFtMMdqZha3jNnNNsqbNQQUDSqUzdoM63rCw7fs4Fo,27456
|
468
468
|
reconcile/test/test_terraform_repo.py,sha256=soKFJfF8tWIimDs39RQl3Hnh-Od-bR4PfnEA2s1UprM,11552
|
469
|
-
reconcile/test/test_terraform_resources.py,sha256=
|
469
|
+
reconcile/test/test_terraform_resources.py,sha256=EFCqPI5_G8hPRh1zmnU91o8wMeT2qK1CabDUa_X1rSk,15283
|
470
470
|
reconcile/test/test_terraform_tgw_attachments.py,sha256=cAq6exc-K-jtLla1CZUZQzVnBkyDnIlL7jybnddhLKc,36861
|
471
471
|
reconcile/test/test_terraform_users.py,sha256=Xn4y6EcxnNQb6XcPoOhz_Ikxmh9Nrsu88OM1scN9hzY,5434
|
472
472
|
reconcile/test/test_terraform_vpc_peerings.py,sha256=ubcsKh0TrUIwuI1-W3ETIgzsFvzAyeoFmEJFC-IK6JY,20538
|
@@ -715,8 +715,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
|
|
715
715
|
tools/test/test_qontract_cli.py,sha256=OvalpVRfY4pNmpMaWHHYqBjV68b1eGQjX8SCyTAXb1w,3501
|
716
716
|
tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
|
717
717
|
tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
|
718
|
-
qontract_reconcile-0.10.
|
719
|
-
qontract_reconcile-0.10.
|
720
|
-
qontract_reconcile-0.10.
|
721
|
-
qontract_reconcile-0.10.
|
722
|
-
qontract_reconcile-0.10.
|
718
|
+
qontract_reconcile-0.10.1rc640.dist-info/METADATA,sha256=yGyS4wiJQccvkIo9N2MNCnbBdI2gKLZcw8quLh1Qgk4,2382
|
719
|
+
qontract_reconcile-0.10.1rc640.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
720
|
+
qontract_reconcile-0.10.1rc640.dist-info/entry_points.txt,sha256=rIxI5zWtHNlfpDeq1a7pZXAPoqf7HG32KMTN3MeWK_8,429
|
721
|
+
qontract_reconcile-0.10.1rc640.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
|
722
|
+
qontract_reconcile-0.10.1rc640.dist-info/RECORD,,
|
reconcile/terraform_resources.py
CHANGED
@@ -203,8 +203,10 @@ def get_aws_accounts(
|
|
203
203
|
logging.error(message)
|
204
204
|
raise ExcludeAccountsAndDryRunException(message)
|
205
205
|
|
206
|
-
if exclude_accounts and include_accounts
|
207
|
-
|
206
|
+
if (exclude_accounts and include_accounts) and any(
|
207
|
+
a in exclude_accounts for a in include_accounts
|
208
|
+
):
|
209
|
+
message = "Using --exclude-accounts and --account-name with the same account is not allowed"
|
208
210
|
logging.error(message)
|
209
211
|
raise ExcludeAccountsAndAccountNameException(message)
|
210
212
|
|
@@ -23,12 +23,12 @@ def test_cannot_use_exclude_accounts_if_not_dry_run():
|
|
23
23
|
assert "--exclude-accounts is only supported in dry-run mode" in str(excinfo.value)
|
24
24
|
|
25
25
|
|
26
|
-
def
|
26
|
+
def test_cannot_use_exclude_account_with_same_account_name():
|
27
27
|
with pytest.raises(integ.ExcludeAccountsAndAccountNameException) as excinfo:
|
28
|
-
integ.run(True, exclude_accounts=("a", "b"), account_name=("c", "d"))
|
28
|
+
integ.run(True, exclude_accounts=("a", "b"), account_name=("b", "c", "d"))
|
29
29
|
|
30
30
|
assert (
|
31
|
-
"Using --exclude-accounts and --account-name
|
31
|
+
"Using --exclude-accounts and --account-name with the same account is not allowed"
|
32
32
|
in str(excinfo.value)
|
33
33
|
)
|
34
34
|
|
File without changes
|
File without changes
|
{qontract_reconcile-0.10.1rc639.dist-info → qontract_reconcile-0.10.1rc640.dist-info}/top_level.txt
RENAMED
File without changes
|