Skip to content

Commit

Permalink
refactor: remove v2 suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhoheiser committed Apr 26, 2024
1 parent 393d3a3 commit c5b0427
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion localstack/services/events/event_bus.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional

from localstack.aws.api.events import Arn, EventBusName, TagList
from localstack.services.events.models_v2 import EventBus, RuleDict
from localstack.services.events.models import EventBus, RuleDict


class EventBusService:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
from localstack.aws.api.events import EventBus as ApiTypeEventBus
from localstack.aws.api.events import Rule as ApiTypeRule
from localstack.services.events.event_bus import EventBusService, EventBusServiceDict
from localstack.services.events.models_v2 import (
from localstack.services.events.models import (
EventBus,
EventBusDict,
EventsStore,
Expand Down
2 changes: 1 addition & 1 deletion localstack/services/events/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
TargetIdList,
TargetList,
)
from localstack.services.events.models_v2 import Rule, TargetDict, ValidationException
from localstack.services.events.models import Rule, TargetDict, ValidationException

TARGET_ID_REGEX = re.compile(r"^[\.\-_A-Za-z0-9]+$")
TARGET_ARN_REGEX = re.compile(r"arn:[\d\w:\-/]*")
Expand Down
2 changes: 1 addition & 1 deletion localstack/services/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def events_v1():

@aws_provider(api="events", name="v2")
def events_v2():
from localstack.services.events.provider_v2 import EventsProvider
from localstack.services.events.provider import EventsProvider

provider = EventsProvider()
return Service.for_provider(provider)
Expand Down

0 comments on commit c5b0427

Please sign in to comment.