web function refactoring

This commit is contained in:
Serghey Rodin 2016-06-09 17:09:25 +03:00
commit 8b237eb936
2 changed files with 33 additions and 12 deletions

View file

@ -23,7 +23,7 @@ source $VESTA/conf/vesta.conf
#----------------------------------------------------------#
check_args '1' "$#" 'USER [SYSTEM]'
validate_format 'user'
is_format_valid 'user'
is_object_valid 'user' 'USER' "$user"
@ -72,6 +72,6 @@ if [ -z "$system" ]; then
else
log_history "deleted $system exlusion"
fi
log_event "$OK" "$EVENT"
log_event "$OK" "$ARGUMENTS"
exit