mirror of https://github.com/jumpserver/jumpserver
Merge branch 'new_api' into ops
commit
160b01ec12
|
@ -23,7 +23,10 @@ class TerminalSerializer(serializers.ModelSerializer):
|
|||
|
||||
@staticmethod
|
||||
def get_is_alive(obj):
|
||||
status = obj.status_set.latest()
|
||||
try:
|
||||
status = obj.status_set.latest()
|
||||
except Status.DoesNotExist:
|
||||
status = None
|
||||
|
||||
if not status:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue