From cb9c44270819c080f899fe7678f7f319686e681d Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 8 Sep 2008 21:44:53 +0000 Subject: 270: show-plugins now only shows namespaces with at least one member --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index db3e0137..048f49ff 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -99,7 +99,7 @@ class show_plugins(public.Application): continue for n in member: attr = member[n] - if isinstance(attr, plugable.NameSpace): + if isinstance(attr, plugable.NameSpace) and len(attr) > 0: self.__traverse_namespace(n, attr, lines, tab + 2) -- cgit