diff options
Diffstat (limited to 'priv/schema')
| -rw-r--r-- | priv/schema/rabbit.schema | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema index 862537bf61..82b9905848 100644 --- a/priv/schema/rabbit.schema +++ b/priv/schema/rabbit.schema @@ -1086,9 +1086,8 @@ end}. {datatype, {enum, [true, false]}} ]}. -{mapping, "log.syslog.ip", "syslog.dest_host", [ - {datatype, string}, - {validators, ["is_ip"]} +{mapping, "log.syslog.host", "syslog.dest_host", [ + {datatype, string} ]}. {mapping, "log.syslog.port", "syslog.dest_port", [ @@ -1353,12 +1352,6 @@ fun(File) -> element(1, ReadFile) == ok end}. -{validator, "is_ip", "string is a valid IP address", -fun(IpStr) -> - Res = inet:parse_address(IpStr), - element(1, Res) == ok -end}. - {validator, "non_negative_integer", "number should be greater or equal to zero", fun(Int) when is_integer(Int) -> Int >= 0 |
