Commit 4c7478b 1 parent cae858c commit 4c7478b Copy full SHA for 4c7478b
File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ Unreleased] [ ]
4
+
3
5
### Added
4
6
5
7
* MSK probes ` chaosaws.msk.probes.describe_msk_cluster ` ` chaosaws.msk.probes.get_bootstrap_servers `
6
8
* MSK actions ` chaosaws.msk.actions.reboot_msk_broker ` ` chaosaws.msk.actions.delete_cluster `
7
9
8
- ## [ Unreleased] [ ]
9
-
10
10
[ Unreleased ] : https://github.com/chaostoolkit-incubator/chaostoolkit-aws/compare/0.33.0...HEAD
11
11
12
12
## [ 0.33.0] [ ] - 2024-02-26
Original file line number Diff line number Diff line change 2
2
3
3
from chaoslib .types import Configuration , Secrets
4
4
from chaoslib .exceptions import FailedActivity
5
+
5
6
from chaosaws import aws_client , get_logger
6
7
from chaosaws .types import AWSResponse
7
8
@@ -28,8 +29,8 @@ def reboot_msk_broker(
28
29
ClusterArn = cluster_arn ,
29
30
BrokerIds = broker_ids
30
31
)
31
- except client .exceptions .NotFoundException as e :
32
- raise FailedActivity ("The specified cluster was not found" ) from e
32
+ except client .exceptions .NotFoundException :
33
+ raise FailedActivity (f "The specified cluster was not found" )
33
34
34
35
35
36
def delete_cluster (
@@ -44,5 +45,5 @@ def delete_cluster(
44
45
logger .debug (f"Deleting MSK cluster: { cluster_arn } " )
45
46
try :
46
47
return client .delete_cluster (ClusterArn = cluster_arn )
47
- except client .exceptions .NotFoundException as e :
48
- raise FailedActivity ("The specified cluster was not found" ) from e
48
+ except client .exceptions .NotFoundException :
49
+ raise FailedActivity (f "The specified cluster was not found" )
Original file line number Diff line number Diff line change 2
2
3
3
from chaoslib .types import Configuration , Secrets
4
4
from chaoslib .exceptions import FailedActivity
5
+
5
6
from chaosaws import aws_client , get_logger
6
7
from chaosaws .types import AWSResponse
7
8
@@ -22,8 +23,8 @@ def describe_msk_cluster(
22
23
logger .debug (f"Describing MSK cluster: { cluster_arn } " )
23
24
try :
24
25
return client .describe_cluster (ClusterArn = cluster_arn )
25
- except client .exceptions .NotFoundException as e :
26
- raise FailedActivity ("The specified cluster was not found" ) from e
26
+ except client .exceptions .NotFoundException :
27
+ raise FailedActivity ("The specified cluster was not found" )
27
28
28
29
29
30
def get_bootstrap_servers (
@@ -39,5 +40,5 @@ def get_bootstrap_servers(
39
40
try :
40
41
response = client .get_bootstrap_brokers (ClusterArn = cluster_arn )
41
42
return response ["BootstrapBrokerString" ].split ("," ) if response else []
42
- except client .exceptions .NotFoundException as e :
43
- raise FailedActivity ("The specified cluster was not found" ) from e
43
+ except client .exceptions .NotFoundException :
44
+ raise FailedActivity ("The specified cluster was not found" )
You can’t perform that action at this time.
0 commit comments