From: garciadeblas Date: Tue, 9 Dec 2025 10:01:53 +0000 (+0100) Subject: Fix bug 2418: do not init cluster for juju when added with k8scluster-add X-Git-Tag: v19.0.0~8 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F73%2F15573%2F2;p=osm%2Fosmclient.git Fix bug 2418: do not init cluster for juju when added with k8scluster-add Change-Id: I668927af502cb7d517e4a63099233af90319c30b Signed-off-by: garciadeblas --- 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: