From 3e9be5baa58ca5a4d9d2deb81475cfd7bf805969 Mon Sep 17 00:00:00 2001 From: iwamoto keita <43646812+engineer-exercise@users.noreply.github.com> Date: Tue, 2 Nov 2021 02:40:23 +0900 Subject: [PATCH] Removed validation of key_file_path in gcs (#3850) Co-authored-by: engineer-exercise --- cvat/apps/engine/serializers.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cvat/apps/engine/serializers.py b/cvat/apps/engine/serializers.py index ae6c9d60..83e5dc4a 100644 --- a/cvat/apps/engine/serializers.py +++ b/cvat/apps/engine/serializers.py @@ -833,9 +833,6 @@ class CloudStorageSerializer(serializers.ModelSerializer): if attrs.get('provider_type') == models.CloudProviderChoice.AZURE_CONTAINER: if not attrs.get('account_name', ''): raise serializers.ValidationError('Account name for Azure container was not specified') - if attrs.get('provider_type') == models.CloudProviderChoice.GOOGLE_CLOUD_STORAGE: - if not attrs.get('key_file_path', ''): - raise serializers.ValidationError('Key file path for Google cloud storage was not specified') return attrs def create(self, validated_data):