Merge pull request #2677 from ryanpetrello/non-exclusive-policy-instance-list

make InstanceGroup.policy_instance_list non-exclusive by default
This commit is contained in:
Ryan Petrello
2018-07-25 21:10:15 -04:00
committed by GitHub
7 changed files with 74 additions and 13 deletions

View File

@@ -4617,7 +4617,7 @@ class InstanceSerializer(BaseSerializer):
read_only_fields = ('uuid', 'hostname', 'version')
fields = ("id", "type", "url", "related", "uuid", "hostname", "created", "modified", 'capacity_adjustment',
"version", "capacity", "consumed_capacity", "percent_capacity_remaining", "jobs_running", "jobs_total",
"cpu", "memory", "cpu_capacity", "mem_capacity", "enabled")
"cpu", "memory", "cpu_capacity", "mem_capacity", "enabled", "managed_by_policy")
def get_related(self, obj):
res = super(InstanceSerializer, self).get_related(obj)