There wasn't a good reason for that limit, we can simply make the code
slightly slower when --groups is passed and still have the expected
output even without --fancy.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
parser.error(_("Showing nested containers requires setns to the "
"PID namespace which your kernel doesn't support."))
-## Check that -g is passed alongside -f
-if args.groups and not args.fancy:
- parser.error(_("Group filtering requires fancy formatting."))
-
# Set the actual lxcpath value
if not args.lxcpath:
args.lxcpath = lxc.default_config_path
continue
# Return before grabbing the object (non-root)
- if not args.state and not args.fancy and not args.nesting:
+ if not args.state and not args.fancy and not args.nesting \
+ and not args.groups:
containers.append(entry)
continue