Skip to content

Commit

Permalink
patch to restart postfix.service (#10549)
Browse files Browse the repository at this point in the history
* patch to restart postfix.service

* Update check with suggested changes
  • Loading branch information
vijaysawant committed Jan 23, 2023
1 parent c28e331 commit da81106
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/foreman/ui/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ def test_positive_update_email_delivery_method_sendmail(session, target_sat):
"send_welcome_email": "Yes",
}
command = "grep " + f'{mail_config_new_params["email_subject_prefix"]}' + " /var/mail/root"

if target_sat.execute('systemctl status postfix').status != 0:
target_sat.execute('systemctl restart postfix')
with session:
try:
for mail_content, mail_content_value in mail_config_new_params.items():
Expand Down

0 comments on commit da81106

Please sign in to comment.