Revision 1b1a08e8

b/lib/client/gnt_group.py
101 101

  
102 102
  return GenericList(constants.QR_GROUP, desired_fields, args, None,
103 103
                     opts.separator, not opts.no_headers,
104
                     format_override=fmtoverride, verbose=opts.verbose)
104
                     format_override=fmtoverride, verbose=opts.verbose,
105
                     force_filter=opts.force_filter)
105 106

  
106 107

  
107 108
def ListGroupFields(opts, args):
......
189 190
    "<group_name> <node>...", "Assign nodes to a group"),
190 191
  "list": (
191 192
    ListGroups, ARGS_MANY_GROUPS,
192
    [NOHDR_OPT, SEP_OPT, FIELDS_OPT, VERBOSE_OPT],
193
    [NOHDR_OPT, SEP_OPT, FIELDS_OPT, VERBOSE_OPT, FORCE_FILTER_OPT],
193 194
    "[<group_name>...]",
194 195
    "Lists the node groups in the cluster. The available fields can be shown"
195 196
    " using the \"list-fields\" command (see the man page for details)."
b/man/gnt-group.rst
93 93
~~~~
94 94

  
95 95
| **list** [--no-headers] [--separator=*SEPARATOR*] [-v]
96
| [-o *[+]FIELD,...*] [group...]
96
| [-o *[+]FIELD,...*] [--filter] [group...]
97 97

  
98 98
Lists all existing node groups in the cluster.
99 99

  
......
115 115

  
116 116
@QUERY_FIELDS_GROUP@
117 117

  
118
If exactly one argument is given and it appears to be a query filter
119
(see **ganeti(7)**), the query result is filtered accordingly. For
120
ambiguous cases (e.g. a single field name as a filter) the ``--filter``
121
(``-F``) option forces the argument to be treated as a filter.
122

  
118 123
If no group names are given, then all groups are included. Otherwise,
119 124
only the named groups will be listed.
120 125

  

Also available in: Unified diff