1
0
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:
Chris Meyers 2018-04-24 14:23:35 -04:00 committed by GitHub
commit f8b547e528
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4587,8 +4587,8 @@ class InstanceGroupSerializer(BaseSerializer):
percent_capacity_remaining = serializers.SerializerMethodField()
jobs_running = serializers.SerializerMethodField()
instances = serializers.SerializerMethodField()
policy_instance_percentage = serializers.IntegerField(min_value=0, max_value=100)
policy_instance_minimum = serializers.IntegerField(min_value=0)
policy_instance_percentage = serializers.IntegerField(min_value=0, max_value=100, required=False, initial=0)
policy_instance_minimum = serializers.IntegerField(min_value=0, required=False, initial=0)
class Meta:
model = InstanceGroup