@@ -132,6 +132,11 @@ vhost_definitions(ReqData, VHostName, Context) ->
132132 ProductName = rabbit :product_name (),
133133 ProductVersion = rabbit :product_version (),
134134
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+
135140 TopLevelDefsAndMetadata = [
136141 {rabbit_version , rabbit_data_coercion :to_binary (Vsn )},
137142 {rabbitmq_version , rabbit_data_coercion :to_binary (Vsn )},
@@ -140,8 +145,9 @@ vhost_definitions(ReqData, VHostName, Context) ->
140145 {rabbitmq_definition_format , <<" single_virtual_host" >>},
141146 {original_vhost_name , VHostName },
142147 {explanation , rabbit_data_coercion :to_binary (io_lib :format (" Definitions of virtual host '~ts '" , [VHostName ]))},
148+ {metadata , Metadata },
143149 {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 }
145151 ],
146152 Result = TopLevelDefsAndMetadata ++ retain_whitelisted (Contents ),
147153
0 commit comments