From 1411399e69216ee1e6c70e90592b519257c84f35 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Thu, 7 Dec 2023 18:09:31 +0100 Subject: [PATCH] Fix versions being strings always [noissue] --- plugin-template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin-template b/plugin-template index 13b9470c..8395d003 100755 --- a/plugin-template +++ b/plugin-template @@ -256,6 +256,13 @@ def main(): config["plugins"] = [ {"name": config["plugin_name"], "app_label": config["plugin_app_label"]} ] + if not all( + (isinstance(version, str) for version in config["ci_update_branches"]) + ): + config["ci_update_branches"] = [ + str(version) for version in config["ci_update_branches"] + ] + write_new_config = True print( "\nLoaded plugin template config from " "{path}/template_config.yml.\n".format(path=plugin_root_dir)