From 9ac8a8b49984ec5727b9da4803ae7823a9e44e13 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Tue, 12 Aug 2008 19:22:48 +0000 Subject: 118: Added user_login.default() method as another example; print_call() now prints sorted by the keys in ascending order --- ipalib/public.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/public.py') diff --git a/ipalib/public.py b/ipalib/public.py index 0dcf71d6..e173bdd5 100644 --- a/ipalib/public.py +++ b/ipalib/public.py @@ -213,7 +213,7 @@ class cmd(plugable.Plugin): ' ' * (tab *2), self.name, method, - ', '.join('%s=%r' % (k, v) for (k, v) in kw.items()), + ', '.join('%s=%r' % (k, kw[k]) for k in sorted(kw)), ) def __call__(self, **kw): -- cgit