Skip to content

Commit

Permalink
nifi show attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
marceloarocha committed Jan 30, 2025
1 parent 051b2cd commit 1360aab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions services/admin/admin_integration_remote_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,13 +376,19 @@ def _validate_custom_endpoint(endpoint: str):
pattern2 = re.compile(
"^nifi-api\/flowfile-queues\/[\w-]{36}\/listing-requests\/[\w-]{36}$"
)
pattern3 = re.compile(
"^nifi-api\/flowfile-queues\/[\w-]{36}\/flowfiles\/[\w-]{36}$"
)

if pattern1.match(endpoint):
return True

if pattern2.match(endpoint):
return True

if pattern3.match(endpoint):
return True

raise ValidationError(
"Endpoint custom inválido",
"errors.businessRules",
Expand Down

0 comments on commit 1360aab

Please sign in to comment.