From 00e1dd6996c0859e0d33c941e86b25e6ffbeb3b9 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 26 Sep 2022 11:01:21 +0800 Subject: [PATCH] fix: remote gateway filter address --- apps/assets/api/domain.py | 4 ++-- apps/assets/api/system_user.py | 0 requirements/requirements.txt | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 apps/assets/api/system_user.py diff --git a/apps/assets/api/domain.py b/apps/assets/api/domain.py index 2a58a21f0..39f2b44f9 100644 --- a/apps/assets/api/domain.py +++ b/apps/assets/api/domain.py @@ -31,8 +31,8 @@ class DomainViewSet(OrgBulkModelViewSet): class GatewayViewSet(OrgBulkModelViewSet): model = Gateway - filterset_fields = ("domain__name", "name", "username", "address", "domain") - search_fields = ("domain__name", "name", "username", "address") + filterset_fields = ("domain__name", "name", "username", "domain") + search_fields = ("domain__name", "name", "username", ) serializer_class = serializers.GatewaySerializer diff --git a/apps/assets/api/system_user.py b/apps/assets/api/system_user.py deleted file mode 100644 index e69de29bb..000000000 diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 20c33d2bc..070764f1b 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,5 +1,6 @@ amqp==5.0.9 -ansible==2.10.7 +ansible==6.4.0 +ansible-runner==4.8.0 asn1crypto==0.24.0 bcrypt==3.1.4 billiard==3.6.4.0 @@ -141,3 +142,4 @@ ForgeryPy3==0.3.1 django-debug-toolbar==3.5 Pympler==1.0.1 IPy==1.1 +