Lint.
This commit is contained in:
parent
40f241adc2
commit
72da9e96c2
13 changed files with 28 additions and 26 deletions
|
|
@ -316,8 +316,7 @@ class EventsBackend(BaseBackend):
|
|||
|
||||
if not event_bus:
|
||||
raise JsonRESTError(
|
||||
"ResourceNotFoundException",
|
||||
"Event bus {} does not exist.".format(name),
|
||||
"ResourceNotFoundException", "Event bus {} does not exist.".format(name)
|
||||
)
|
||||
|
||||
return event_bus
|
||||
|
|
|
|||
|
|
@ -261,10 +261,7 @@ class EventsHandler(BaseResponse):
|
|||
name = self._get_param("Name")
|
||||
|
||||
event_bus = self.events_backend.describe_event_bus(name)
|
||||
response = {
|
||||
"Name": event_bus.name,
|
||||
"Arn": event_bus.arn,
|
||||
}
|
||||
response = {"Name": event_bus.name, "Arn": event_bus.arn}
|
||||
|
||||
if event_bus.policy:
|
||||
response["Policy"] = event_bus.policy
|
||||
|
|
@ -285,10 +282,7 @@ class EventsHandler(BaseResponse):
|
|||
|
||||
response = []
|
||||
for event_bus in self.events_backend.list_event_buses(name_prefix):
|
||||
event_bus_response = {
|
||||
"Name": event_bus.name,
|
||||
"Arn": event_bus.arn,
|
||||
}
|
||||
event_bus_response = {"Name": event_bus.name, "Arn": event_bus.arn}
|
||||
|
||||
if event_bus.policy:
|
||||
event_bus_response["Policy"] = event_bus.policy
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue