Always display the details if an ACL is specified.
Signed-off-by: Jean-Marc Eurin <[email protected]>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@3131 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/acl.py b/cli/acl.py
index a6a01df..d6f5baa 100755
--- a/cli/acl.py
+++ b/cli/acl.py
@@ -123,9 +123,15 @@
def output(self, results):
+ # If an ACL was specified, always print its details
+ if self.acls or self.verbose:
+ sublist_keys=('hosts', 'users')
+ else:
+ sublist_keys=()
+
super(acl_list, self).output(results,
- keys=['name', 'description'],
- sublist_keys=['hosts', 'users'])
+ keys=('name', 'description'),
+ sublist_keys=sublist_keys)
class acl_create(action_common.atest_create, acl):