(get)
| 915 | |
| 916 | @staticmethod |
| 917 | def remove_source(get): |
| 918 | try: |
| 919 | server_id = get.server_id.strip() |
| 920 | source_type = get.source_type.strip() |
| 921 | source_list = json.loads(get.source_list.strip()) |
| 922 | except (AttributeError, json.JSONDecodeError): |
| 923 | return public.returnMsg(False, "参数错误") |
| 924 | |
| 925 | return LogServerManager().remove_source( |
| 926 | source_type=source_type, |
| 927 | server_id=server_id, |
| 928 | data=source_list, |
| 929 | ) |
nothing calls this directly
no test coverage detected