Skip to content

Commit

Permalink
Removed validation of key_file_path in gcs (#3850)
Browse files Browse the repository at this point in the history
Co-authored-by: engineer-exercise <keita.iwamoto@legalforce.co.jp>
  • Loading branch information
engineer-exercise and engineer-exercise committed Nov 1, 2021
1 parent 7bf4154 commit 3e9be5b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cvat/apps/engine/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -833,9 +833,6 @@ def validate(self, attrs):
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):
Expand Down

0 comments on commit 3e9be5b

Please sign in to comment.