From: garciadeblas Date: Tue, 25 Nov 2025 14:58:12 +0000 (+0100) Subject: Fix bug 2413: fix filter in list operations for ACM first class citizens X-Git-Tag: v19.0.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F15539%2F1;p=osm%2Fosmclient.git Fix bug 2413: fix filter in list operations for ACM first class citizens Change-Id: Id40cad0ea08084ac8e0b0a4b985ca014df2d39a2 Signed-off-by: garciadeblas --- 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