From 1756fb46aee239699c01f71deb32426ab5731c0c Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 25 Nov 2025 15:58:12 +0100 Subject: [PATCH] Fix bug 2413: fix filter in list operations for ACM first class citizens Change-Id: Id40cad0ea08084ac8e0b0a4b985ca014df2d39a2 Signed-off-by: garciadeblas --- osmclient/cli_commands/app_profile.py | 2 ++ osmclient/cli_commands/cluster.py | 2 ++ osmclient/cli_commands/infra_config_profile.py | 2 ++ osmclient/cli_commands/infra_controller_profile.py | 2 ++ osmclient/cli_commands/ksu.py | 2 ++ osmclient/cli_commands/oka.py | 2 ++ osmclient/cli_commands/profiles.py | 2 ++ osmclient/cli_commands/resource_profile.py | 2 ++ 8 files changed, 16 insertions(+) diff --git a/osmclient/cli_commands/app_profile.py b/osmclient/cli_commands/app_profile.py index 75f364a..ab616a4 100755 --- a/osmclient/cli_commands/app_profile.py +++ b/osmclient/cli_commands/app_profile.py @@ -62,6 +62,8 @@ def app_profile_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/cluster.py b/osmclient/cli_commands/cluster.py index c2d4c8e..241161d 100755 --- a/osmclient/cli_commands/cluster.py +++ b/osmclient/cli_commands/cluster.py @@ -126,6 +126,8 @@ def cluster_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/infra_config_profile.py b/osmclient/cli_commands/infra_config_profile.py index 7a86c93..fab0301 100755 --- a/osmclient/cli_commands/infra_config_profile.py +++ b/osmclient/cli_commands/infra_config_profile.py @@ -66,6 +66,8 @@ def infra_config_profile_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/infra_controller_profile.py b/osmclient/cli_commands/infra_controller_profile.py index 213c158..713a56e 100755 --- a/osmclient/cli_commands/infra_controller_profile.py +++ b/osmclient/cli_commands/infra_controller_profile.py @@ -68,6 +68,8 @@ def infra_controller_profile_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/ksu.py b/osmclient/cli_commands/ksu.py index 1ce7f4a..5bd8999 100755 --- a/osmclient/cli_commands/ksu.py +++ b/osmclient/cli_commands/ksu.py @@ -284,6 +284,8 @@ def ksu_delete(ctx, ksus, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/oka.py b/osmclient/cli_commands/oka.py index 55b1d3c..d0e0020 100755 --- a/osmclient/cli_commands/oka.py +++ b/osmclient/cli_commands/oka.py @@ -161,6 +161,8 @@ def oka_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option diff --git a/osmclient/cli_commands/profiles.py b/osmclient/cli_commands/profiles.py index 821fca3..f4563af 100755 --- a/osmclient/cli_commands/profiles.py +++ b/osmclient/cli_commands/profiles.py @@ -27,6 +27,8 @@ logger = logging.getLogger("osmclient") @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @click.pass_context diff --git a/osmclient/cli_commands/resource_profile.py b/osmclient/cli_commands/resource_profile.py index e1ff670..9df4684 100755 --- a/osmclient/cli_commands/resource_profile.py +++ b/osmclient/cli_commands/resource_profile.py @@ -64,6 +64,8 @@ def resource_profile_delete(ctx, name, force): @utils.require_hostname @click.option( "--filter", + default=None, + multiple=True, help="restricts the list to the items matching the filter", ) @print_output.output_option -- 2.25.1