Doron Fediuck has posted comments on this change.
Change subject: tools: notifier - add validation to mail type properties
......................................................................
Patch Set 2: (1 inline comment)
Good progress, but a few nits / questions inline.
....................................................
File
backend/manager/tools/engine-notifier/engine-notifier-resources/src/main/resources/notifier.sh
Line 22: }
Line 23:
Line 24: check_email_format() {
Line 25: #exit with a message if the property is not in user@domain format
Line 26: if [[ ! ${!1} == *@* ]] ; then
Why use ! and ==?
Will it not be more readable to use-
[[ ${!1} != *@* ]] ; ?
As for the regex, what will happen if I use "doron@" ?
Line 27: die "Error: $1 must be of the form user@domain"
Line 28: fi
Line 29: }
Line 30:
--
To view, visit http://gerrit.ovirt.org/10775
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I652d6b7aa9ca34192d6892174bf57b11335cb98a
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <[email protected]>
Gerrit-Reviewer: Doron Fediuck <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Noam Slomianko <[email protected]>
Gerrit-Reviewer: Yair Zaslavsky <[email protected]>
Gerrit-Reviewer: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches