Skip to content

Automation network range with spaces fails validation #3017

@netniV

Description

@netniV

Describe the bug
If a network range provided to automation contains spaces at the beginning or end, then it is incorrectly reported as failing when it should be trimmed.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Automation'
  2. Click on 'Networks'
  3. Edit a network
  4. Set the range to something such as " 10.1.1.1" or "10.11.12.0/24, 172.172.0.*"
  5. See the error

Expected behavior
In the above example, " 10.1.1.1" should become "10.1.1.1" and "10.11.12.0/24, 172.172.0.*" should be treated as "10.11.12.0/24,172.172.0.*". The code actually splits the ranges by commas, so it would be the individual entry that is trimmed.

Metadata

Metadata

Assignees

Labels

automationAutomation related issuebugUndesired behaviourresolvedA fixed issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions