Find the rabbitmq.schema in the same way as other schemas

This commit is contained in:
Luke Bakken 2017-06-14 07:56:33 -07:00
parent 38c138b846
commit 0dde05a6d8
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@
init_schemas(App, Config) ->
DepsDir = ?config(erlang_mk_depsdir, Config),
RabbitSchema = filename:join([DepsDir, "rabbit", "priv", "schema", "rabbitmq.schema"]),
% Note: the schema for the rabbit app is named "rabbitmq.schema"
RabbitSchema = find_app_schema(rabbitmq, DepsDir),
Schemas = case App of
rabbit -> [RabbitSchema];
_ -> [RabbitSchema, find_app_schema(App, DepsDir)]