Bug #20387

Handle the extra spaces prefixed in discovery rules

Added by Rahul Bajaj 8 months ago. Updated 8 months ago.

Assigned To:Rahul Bajaj
Target version:Team Anurag Iteration 18
Difficulty: Bugzilla link:1452381
Found in release: Pull request:https://github.com/theforeman/foreman_discovery/pull/366, https://github.com/theforeman/foreman/pull/4693
Story points-
Velocity based estimate-


Steps to Reproduce:
1. Navigate to Satellite UI -> Configure -> Discovery Rules. Create a new Discovery rule.
2. Trigger a user error scenario in which a space is prefixed in the Discovery Rule -> Search field - something like ` name~mac*`
3. Provision a host via pxe and check if auto provisioning works

Actual results:
Auto provisioning does not work when search field had space prefixed (by mistake)

Expected results:Provisioning should work.

Associated revisions

Revision a6001b10
Added by Rahul Bajaj 8 months ago

Fixes #20387 -Clean redundant code for auto complete search


#1 Updated by The Foreman Bot 8 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_discovery/pull/366 added

#2 Updated by Rahul Bajaj 8 months ago

  • Project changed from Discovery to Foreman
  • Pull request https://github.com/theforeman/foreman/pull/4693 added

#3 Updated by Rahul Bajaj 8 months ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF