Make peers field optional

This commit is contained in:
Seth Foster
2023-08-29 13:06:54 -04:00
committed by Seth Foster
parent 3eda1ede8d
commit 0c41abea0e
+1 -1
View File
@@ -5387,7 +5387,7 @@ class InstanceSerializer(BaseSerializer):
jobs_running = serializers.IntegerField(help_text=_('Count of jobs in the running or waiting state that are targeted for this instance'), read_only=True)
jobs_total = serializers.IntegerField(help_text=_('Count of all jobs that target this instance'), read_only=True)
health_check_pending = serializers.SerializerMethodField()
peers = PeersSerializer(many=True)
peers = PeersSerializer(many=True, required=False)
class Meta:
model = Instance