@@ -132,6 +132,11 @@ vhost_definitions(ReqData, VHostName, Context) ->
132
132
ProductName = rabbit :product_name (),
133
133
ProductVersion = rabbit :product_version (),
134
134
135
+ DQT = rabbit_queue_type :short_alias_of (rabbit_vhost :default_queue_type (VHostName )),
136
+ % % note: the type changes to a map
137
+ VHost1 = rabbit_queue_type :inject_dqt (VHost ),
138
+ Metadata = maps :get (metadata , VHost1 ),
139
+
135
140
TopLevelDefsAndMetadata = [
136
141
{rabbit_version , rabbit_data_coercion :to_binary (Vsn )},
137
142
{rabbitmq_version , rabbit_data_coercion :to_binary (Vsn )},
@@ -140,8 +145,9 @@ vhost_definitions(ReqData, VHostName, Context) ->
140
145
{rabbitmq_definition_format , <<" single_virtual_host" >>},
141
146
{original_vhost_name , VHostName },
142
147
{explanation , rabbit_data_coercion :to_binary (io_lib :format (" Definitions of virtual host '~ts '" , [VHostName ]))},
148
+ {metadata , Metadata },
143
149
{description , vhost :get_description (VHost )},
144
- {default_queue_type , rabbit_queue_type : short_alias_of ( rabbit_vhost : default_queue_type ( VHostName )) }
150
+ {default_queue_type , DQT }
145
151
],
146
152
Result = TopLevelDefsAndMetadata ++ retain_whitelisted (Contents ),
147
153
0 commit comments