mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 15:11:27 +00:00
fix: swagger
This commit is contained in:
@@ -166,6 +166,9 @@ class CommandViewSet(JMSBulkModelViewSet):
|
||||
|
||||
def get_queryset(self):
|
||||
command_storage_id = self.request.query_params.get('command_storage_id')
|
||||
if not command_storage_id:
|
||||
return Command.objects.none()
|
||||
|
||||
storage = CommandStorage.objects.get(id=command_storage_id)
|
||||
if not storage.is_valid():
|
||||
raise StorageInvalid
|
||||
|
Reference in New Issue
Block a user