Fixes #3860 - automated discovery provisioning

Replaces https://github.com/theforeman/foreman_discovery/pull/97
wait what? why do you have to *disable* search to *enable* autocompletion?