From 0c41abea0e408ca6cf2399dcf35106bcf8dba6b1 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Mon, 12 Jun 2023 21:02:33 -0400 Subject: [PATCH] Make peers field optional --- awx/api/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index d298549050..02f2336f61 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -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