mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 01:21:21 +03:00
Merge pull request #1552 from chrismeyersfsu/fix-policy_not_required_field
policy fields not required
This commit is contained in:
commit
f8b547e528
@ -4587,8 +4587,8 @@ class InstanceGroupSerializer(BaseSerializer):
|
|||||||
percent_capacity_remaining = serializers.SerializerMethodField()
|
percent_capacity_remaining = serializers.SerializerMethodField()
|
||||||
jobs_running = serializers.SerializerMethodField()
|
jobs_running = serializers.SerializerMethodField()
|
||||||
instances = serializers.SerializerMethodField()
|
instances = serializers.SerializerMethodField()
|
||||||
policy_instance_percentage = serializers.IntegerField(min_value=0, max_value=100)
|
policy_instance_percentage = serializers.IntegerField(min_value=0, max_value=100, required=False, initial=0)
|
||||||
policy_instance_minimum = serializers.IntegerField(min_value=0)
|
policy_instance_minimum = serializers.IntegerField(min_value=0, required=False, initial=0)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = InstanceGroup
|
model = InstanceGroup
|
||||||
|
Loading…
Reference in New Issue
Block a user