Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
Fix schedulers email notifications

See merge request ADAS-Private/HEAppE/heappe-core!80
  • Loading branch information
janecekkrenek committed Sep 7, 2022
2 parents 371074a + 6f782fa commit c9d7b89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void SetTasks(IEnumerable<object> tasksAllocationcmd)
/// <param name="notifyOnFailure">Notification on failured job</param>
public void SetNotifications(string mailAddress, bool? notifyOnStart, bool? notifyOnCompletion, bool? notifyOnFailure)
{
if (!string.IsNullOrEmpty(mailAddress) && (notifyOnStart ?? false)
|| (notifyOnCompletion ?? false) || (notifyOnFailure ?? false))
if (!string.IsNullOrEmpty(mailAddress) && ((notifyOnStart ?? false)
|| (notifyOnCompletion ?? false) || (notifyOnFailure ?? false)))
{
var onFailureValue = (notifyOnFailure ?? false ? "a" : string.Empty);
var onStartValue = (notifyOnStart ?? false ? "b" : string.Empty);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public void SetTasks(IEnumerable<object> tasksAllocationcmd)
/// <param name="notifyOnFailure">Notification on failured job</param>
public void SetNotifications(string mailAddress, bool? notifyOnStart, bool? notifyOnCompletion, bool? notifyOnFailure)
{
if (!string.IsNullOrEmpty(mailAddress) && (notifyOnStart ?? false)
|| (notifyOnCompletion ?? false) || (notifyOnFailure ?? false))
if (!string.IsNullOrEmpty(mailAddress) && ((notifyOnStart ?? false)
|| (notifyOnCompletion ?? false) || (notifyOnFailure ?? false)))
{
string mailParameters = string.Empty;
if (notifyOnFailure ?? false)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Major changes in the latest release includes
- various functional and security updates

## Documentation
Please see the official HEAppE documentation at https://heappe.eu/docs.
Please see the official HEAppE documentation at https://heappe.it4i.cz/docs.

# References

Expand Down

0 comments on commit c9d7b89

Please sign in to comment.