Multiple output formats in list and show commands for OKA and KSU 87/14987/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 17 Feb 2025 10:11:46 +0000 (11:11 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Mon, 17 Feb 2025 10:11:46 +0000 (11:11 +0100)
Change-Id: If962b7d539aae178a1bcc3a0a9bfc3496b0603a2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
osmclient/cli_commands/ksu.py
osmclient/cli_commands/oka.py

index a66571a..8fddacb 100755 (executable)
@@ -288,7 +288,7 @@ def ksu_delete(ctx, ksus, force):
 def ksu_list(ctx, filter, output):
     """list all Kubernetes SW Units (KSU)"""
     logger.debug("")
-    common.generic_list(callback=ctx.obj.ksu.list, filter=filter)
+    common.generic_list(callback=ctx.obj.ksu.list, filter=filter, format=output)
 
 
 @click.command(name="ksu-show", short_help="shows the details of a KSU")
@@ -301,7 +301,7 @@ def ksu_show(ctx, name, output):
     NAME: name or ID of the KSU
     """
     logger.debug("")
-    common.generic_show(callback=ctx.obj.ksu.get, name=name)
+    common.generic_show(callback=ctx.obj.ksu.get, name=name, format=output)
 
 
 @click.command(
index 74cdc70..a6457d9 100755 (executable)
@@ -165,7 +165,7 @@ def oka_delete(ctx, name, force):
 def oka_list(ctx, filter, output):
     """list all OSM Kubernetes Application (OKA)"""
     logger.debug("")
-    common.generic_list(callback=ctx.obj.oka.list, filter=filter)
+    common.generic_list(callback=ctx.obj.oka.list, filter=filter, format=output)
 
 
 @click.command(
@@ -181,7 +181,7 @@ def oka_show(ctx, name, output):
     NAME: name or ID of the OKA
     """
     logger.debug("")
-    common.generic_show(callback=ctx.obj.oka.get, name=name)
+    common.generic_show(callback=ctx.obj.oka.get, name=name, format=output)
 
 
 @click.command(