From 0192e5246a75cfde4efbf67339821bab6a94974c Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Thu, 9 Nov 2023 00:31:48 +1100 Subject: [PATCH] docker-compose: Add support for new channel format --- docker-compose.jsonnet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.jsonnet b/docker-compose.jsonnet index 3cf2fc5..536c342 100644 --- a/docker-compose.jsonnet +++ b/docker-compose.jsonnet @@ -277,8 +277,9 @@ for key in std.objectFields($.db_args) ]), - // Cleaned up version of $.channels without importance markers - clean_channels:: [std.split(c, '!')[0] for c in $.channels], + // Cleaned up version of $.channels without importance/type markers. + // General form is CHANNEL[!][:TYPE:URL]. + clean_channels:: [std.split(std.split(c, ":")[0], '!')[0] for c in $.channels], // Image format helper get_image(name, tag=$.image_tag):: "%s/wubloader-%s:%s" % [