Fix cluster command options to be flags by setting is_flag to True 02/15402/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 15 Sep 2025 13:07:17 +0000 (15:07 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 17 Sep 2025 09:30:10 +0000 (11:30 +0200)
Change-Id: Iefa1472c81e1c809b86bc9bff015b2f083b976fe
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/cli_commands/cluster.py

index 31fe137..c2d4c8e 100755 (executable)
@@ -47,6 +47,7 @@ logger = logging.getLogger("osmclient")
 )
 @click.option(
     "--bootstrap/--no-bootstrap",
+    is_flag=True,
     required=False,
     default=True,
     help="bootstrap the cluster with Flux (prepare for GitOps) (default=True)",
@@ -299,12 +300,14 @@ def cluster_get_kubeconfig(ctx, name, **kwargs):
 @click.option("--description", default="", help="human readable description")
 @click.option(
     "--bootstrap/--no-bootstrap",
+    is_flag=True,
     required=False,
     default=True,
     help="bootstrap the cluster with Flux (prepare for GitOps) (default=True)",
 )
 @click.option(
     "--openshift",
+    is_flag=True,
     required=False,
     default=False,
     help="flag to indicate that the cluster is Openshift-based (bootstrap is slightly different) (default=False)",