#import uyuni_cobbler_helper
#set $distrotree = $distro_name.split(":")[0]
#for $label, $channel in $uyuni_cobbler_helper.channels($distrotree).items()
      <listentry>
        <ask_on_error config:type="boolean">true</ask_on_error>
        <media_url>https://$redhat_management_server/ks/dist/child/$label/$distrotree</media_url>
        <name>$channel["name"]</name>
#if $channel["product"]
        <product>$channel["product"]</product>
#end if
     </listentry>
#end for
