Skip to content

Commit

Permalink
[GUI] [FRONTEND] Remove too strict validation for log_condition field (
Browse files Browse the repository at this point in the history
…#444)

### Fixed
- [GUI] [FRONTEND] Remove too strict validation for log_condition field
  • Loading branch information
ELDiablO59152 authored Sep 6, 2024
1 parent d382f24 commit cec8cb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [CLUSTER] [PF] Correctly reload configurations when changing SSH/GUI access rules
- [FRONTEND] [PF] Correctly add NAT rules for Forwarders on FILE/REDIS/KAFKA-type Frontends
- [TENANT] [CONF] Ensure related Frontend configurations are reloaded when a Tenant's parameter is changed
- [GUI] [FRONTEND] Remove too strict validation for log_condition field


## [2.15.10] - 2024-08-09
Expand Down
2 changes: 0 additions & 2 deletions vulture_os/services/frontend/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,8 +579,6 @@ def clean_log_condition(self):
regex = "{{([^}]+)}}"
log_condition = self.cleaned_data.get('log_condition', "").replace("\r\n", "\n")
for line in log_condition.split('\n'):
if line.count('{') > 2:
raise ValidationError("There cannot be 2 actions on one line.")
match = re_search(regex, line)
if match:
try:
Expand Down

0 comments on commit cec8cb1

Please sign in to comment.