Skip to content

Commit

Permalink
fix 123
Browse files Browse the repository at this point in the history
  • Loading branch information
ymakedaq committed Sep 24, 2024
1 parent daf2c6d commit daf4020
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion dbm-ui/backend/db_services/mysql/toolbox/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,16 @@

from rest_framework.routers import DefaultRouter

from backend.db_services.mysql.toolbox.views import TendbhaTransferToOtherBizViewSet, ToolboxViewSet
from backend.db_services.mysql.toolbox.views import (
TendbHaSlaveInstanceAddDomainSet,
TendbhaTransferToOtherBizViewSet,
ToolboxViewSet,
)

router = DefaultRouter(trailing_slash=True)
router.register(r"toolbox", ToolboxViewSet, basename="toolbox")
router.register(r"toolbox", TendbhaTransferToOtherBizViewSet, basename="toolbox")
router.register(r"toolbox", TendbHaSlaveInstanceAddDomainSet, basename="toolbox")

urlpatterns = []
urlpatterns += router.urls
2 changes: 1 addition & 1 deletion dbm-ui/backend/db_services/mysql/toolbox/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def query_higher_version_pkg_list(self, request, **kwargs):
return Response(ToolboxHandler().query_higher_version_pkg_list(cluster_id, higher_major_version))


class TendbHaSlaveInstanceAddDomain(viewsets.SystemViewSet):
class TendbHaSlaveInstanceAddDomainSet(viewsets.SystemViewSet):
action_permission_map = {}
default_permission_class = [DBManagePermission()]

Expand Down

0 comments on commit daf4020

Please sign in to comment.