Katello / katello-client-bootstrap

Bootstrap Script for migrating systems to Foreman & Katello
GNU General Public License v2.0
52 stars 63 forks source link

improve error message and allow non-existing files for --rex-authpath #299

Closed evgeni closed 5 years ago

evgeni commented 5 years ago

Users might pass a folder, but we really expect a file here, so let the error message say this.

Also, the code can actually handle a non-existing file just fine, as it will create it if it does not exist, so let's just error if the path given exists but is not a file.

Fixes: #296