Skip to content

Commit 39fbf91

Browse files
Merge pull request #15132 from rabbitmq/mergify/bp/v4.2.x/pr-15130
For 4.2.3: Use defaults for `durable` and `auto_delete` when importing definitions (backport #15130)
2 parents b2c3f7f + e9aefee commit 39fbf91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/rabbit/src/rabbit_definitions.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,8 +882,8 @@ add_exchange_int(Exchange, Name, ActingUser) ->
882882
end,
883883
case rabbit_exchange:declare(Name,
884884
rabbit_exchange:check_type(maps:get(type, Exchange, undefined)),
885-
maps:get(durable, Exchange, undefined),
886-
maps:get(auto_delete, Exchange, undefined),
885+
maps:get(durable, Exchange, true),
886+
maps:get(auto_delete, Exchange, false),
887887
Internal,
888888
args(maps:get(arguments, Exchange, undefined)),
889889
ActingUser) of

0 commit comments

Comments
 (0)