From 1b20f11544907ec750c0a05b2e8fb0f0e0fcd14d 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 75f364af..ab616a45 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 c2d4c8e6..241161d3 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 7a86c932..fab03016 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 213c1580..713a56eb 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 1ce7f4a5..5bd89996 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 55b1d3ca..d0e0020d 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 821fca33..f4563afc 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 e1ff6708..9df46847 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