Skip to content

Commit 0f626e0

Browse files
committed
Do not parse syslog IP in schema transformer. String IPs are supported anyway.
1 parent 0fe2422 commit 0f626e0

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

priv/schema/rabbit.schema

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,13 +1091,6 @@ end}.
10911091
{validators, ["is_ip"]}
10921092
]}.
10931093

1094-
{translation, "syslog.dest_host",
1095-
fun(Conf) ->
1096-
IpString = cuttlefish:conf_get("log.syslog.ip", Conf),
1097-
{ok, IP} = inet:parse_address(IpString),
1098-
IP
1099-
end}.
1100-
11011094
{mapping, "log.syslog.port", "syslog.dest_port", [
11021095
{datatype, integer}
11031096
]}.

test/config_schema_SUITE_data/rabbit.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ credential_validator.regexp = ^abc\\d+",
547547
{syslog, [{app_name, "rabbitmq"},
548548
{facility, user},
549549
{multiline_mode, true},
550-
{dest_host, {10, 10, 10, 10}},
550+
{dest_host, "10.10.10.10"},
551551
{dest_port, 123}]}
552552
],
553553
[]},

0 commit comments

Comments
 (0)