Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Fix check to resolve differing output between rhel versions. Closes #424
Browse files Browse the repository at this point in the history
.
  • Loading branch information
chambridge committed Nov 20, 2017
1 parent 7f746eb commit da200fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rho/postprocessing.py
Expand Up @@ -323,7 +323,8 @@ def process_id_u_jboss(fact_names, host_vars):
# nonzero error code means "not found", because then we would give
# false negatives if the user didn't have permission to read
# /etc/passwd (or other errors).
if output['stdout_lines'] == ['id: jboss: no such user']:
if (output['stdout_lines'] == ['id: jboss: no such user'] or
output['stdout_lines'] == ['id: jboss: No such user']):
return {JBOSS_EAP_JBOSS_USER: 'No user "jboss" found'}

return {JBOSS_EAP_JBOSS_USER:
Expand Down

0 comments on commit da200fa

Please sign in to comment.