Modify Rule.send_to_targets() to handle event_bus_name as ARN (#3804)
* Modify Rule.send_to_targets() to handle event_bus_name as ARN * Apply black formatting Co-authored-by: Tom Noble <tom.noble@bjss.com>
This commit is contained in:
parent
9f9716ee01
commit
f549f1d087
2 changed files with 29 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ class Rule(CloudFormationModel):
|
|||
self.targets.pop(index)
|
||||
|
||||
def send_to_targets(self, event_bus_name, event):
|
||||
event_bus_name = event_bus_name.split("/")[-1]
|
||||
if event_bus_name != self.event_bus_name:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue