From 6b8fbce02c02c86754fd7569e7242997e3e642bf Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 9 Dec 2025 11:01:53 +0100 Subject: [PATCH] Fix bug 2418: do not init cluster for juju when added with k8scluster-add Change-Id: I668927af502cb7d517e4a63099233af90319c30b Signed-off-by: garciadeblas --- osmclient/cli_commands/k8scluster.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/osmclient/cli_commands/k8scluster.py b/osmclient/cli_commands/k8scluster.py index a61978f9..0ee239e9 100755 --- a/osmclient/cli_commands/k8scluster.py +++ b/osmclient/cli_commands/k8scluster.py @@ -48,7 +48,7 @@ logger = logging.getLogger("osmclient") @click.option( "--init-jujubundle/--skip-jujubundle", required=False, - default=True, + default=False, help="Initialize juju-bundle", ) @click.option("--description", default=None, help="human readable description") @@ -100,11 +100,10 @@ def k8scluster_add( cluster["k8s_version"] = version cluster["vim_account"] = vim cluster["nets"] = yaml.safe_load(k8s_nets) - if not (init_jujubundle and init_helm3): - cluster["deployment_methods"] = { - "juju-bundle": init_jujubundle, - "helm-chart-v3": init_helm3, - } + cluster["deployment_methods"] = { + "juju-bundle": init_jujubundle, + "helm-chart-v3": init_helm3, + } if description: cluster["description"] = description if namespace: -- 2.25.1