Bug #20387

Handle the extra spaces prefixed in discovery rules

Added by Rahul Bajaj 10 months ago. Updated 10 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 10 months ago

Fixes #20387 -Clean redundant code for auto complete search


#1 Updated by The Foreman Bot 10 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 10 months ago

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

#3 Updated by Rahul Bajaj 10 months ago

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

Also available in: Atom PDF