From 3ac6ed943036199ca6582d5f91abb1dbed316131 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 17 Feb 2025 11:11:46 +0100 Subject: [PATCH] Multiple output formats in list and show commands for OKA and KSU Change-Id: If962b7d539aae178a1bcc3a0a9bfc3496b0603a2 Signed-off-by: garciadeblas --- osmclient/cli_commands/ksu.py | 4 ++-- osmclient/cli_commands/oka.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osmclient/cli_commands/ksu.py b/osmclient/cli_commands/ksu.py index a66571a..8fddacb 100755 --- a/osmclient/cli_commands/ksu.py +++ b/osmclient/cli_commands/ksu.py @@ -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( diff --git a/osmclient/cli_commands/oka.py b/osmclient/cli_commands/oka.py index 74cdc70..a6457d9 100755 --- a/osmclient/cli_commands/oka.py +++ b/osmclient/cli_commands/oka.py @@ -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( -- 2.25.1