moved filterint out policy instance values in the api browser input box into the instanceGroupDetail class where I overrode the update_raw_data function to parse out the unneeded data. Additionally added the fix for checking the value in the serializer.

This commit is contained in:
Rebeccah
2019-10-23 17:15:40 -04:00
committed by Ryan Petrello
parent 4bbdce3478
commit 1ae8fdc15c
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -4801,7 +4801,7 @@ class InstanceGroupSerializer(BaseSerializer):
raise serializers.ValidationError(_('Isolated instances may not be added or removed from instances groups via the API.'))
if self.instance and self.instance.controller_id is not None:
raise serializers.ValidationError(_('Isolated instance group membership may not be managed via the API.'))
if self.instance.is_containerized:
if value and self.instance.is_containerized:
raise serializers.ValidationError(_('Containerized instances may not be managed via the API'))
return value