diff --git a/awx/main/fields.py b/awx/main/fields.py index ac761ca90e..d0286f553a 100644 --- a/awx/main/fields.py +++ b/awx/main/fields.py @@ -699,7 +699,7 @@ class CredentialInputField(JSONSchemaField): 'ssh_key_data' not in errors ]): errors['ssh_key_unlock'] = [_('should not be set when SSH key is not encrypted.')] - + if errors: raise serializers.ValidationError({ 'inputs': errors