mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
refactoring: log_event(), is_format_valid()
This commit is contained in:
parent
325ca65f32
commit
a61a6e979e
52 changed files with 582 additions and 1170 deletions
|
@ -25,7 +25,7 @@ source $VESTA/conf/vesta.conf
|
|||
|
||||
check_args '2' "$#" 'IP IP_STATUS'
|
||||
is_format_valid 'ip' 'ip_status'
|
||||
is_ip_valid
|
||||
is_ip_valid "$ip"
|
||||
if [ "$ip_status" = "$(get_ip_value '$STATUS')" ]; then
|
||||
echo "Error: status $ip_status is already set"
|
||||
log_event "$E_EXISTS" "$ARGUMENTS"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue