Bug #31823
openGlobal Registration: Multiple successful enrollment with same command on same host
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1921464
Description of problem:
After successful enrollment of a fedora host, if we try run the same command, it just run and gave output successfully enrolled host. Once a enrollment is successful, next enrollment with same command should give output "Already enrolled".
Version-Release number of selected component (if applicable):
6.9
How reproducible:
Steps to Reproduce:
1. Generate registration command
2. Register a Fedora host with the command
3. Once its success, check the host exist in Satellite host Page. it exists.
4. Run the command multiple time on same host. It will still say enrollment successful.
Actual results:
"Successfully enrolled host localhost with Foreman"
Expected results:
It should give message : "Host already enrolled", we can also add option of "--force"
Additional info: