Skip to content
Snippets Groups Projects
Commit 3ac6ed94 authored by garciadeblas's avatar garciadeblas
Browse files

Multiple output formats in list and show commands for OKA and KSU


Change-Id: If962b7d539aae178a1bcc3a0a9bfc3496b0603a2
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent c8105419
No related branches found
No related tags found
No related merge requests found
Pipeline #18406 passed with stage
in 3 minutes and 27 seconds
......@@ -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(
......
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment