Hi, All *-find commands now enable leading/trailing whitespaces in the search phrase. Behaviour has been implemented directly into crud.Search class.
https://fedorahosted.org/freeipa/ticket/2981 Tomas
>From 6b7f3d99a9592e2f8e1155e12d743a60453f7e83 Mon Sep 17 00:00:00 2001 From: Tomas Babej <tba...@redhat.com> Date: Tue, 30 Oct 2012 09:44:50 -0400 Subject: [PATCH] Relax restriction for leading/trailing whitespaces in *-find commands All *-find commands now enable leading/trailing whitespaces in the search phrase. Behaviour has been implemented directly into crud.Search class. https://fedorahosted.org/freeipa/ticket/2981 --- ipalib/crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/crud.py b/ipalib/crud.py index 12edbf58ab0a784fae9ba17573d6dd45f31ebccc..d54b91fd7a927dda363f983d68fe732616663a82 100644 --- a/ipalib/crud.py +++ b/ipalib/crud.py @@ -230,7 +230,7 @@ class Search(Method): has_output = output.standard_list_of_entries def get_args(self): - yield parameters.Str('criteria?') + yield parameters.Str('criteria?', noextrawhitespace=False) def get_options(self): if self.extra_options_first: -- 1.7.11.7
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel