Revision 23805716

b/lib/client/gnt_group.py
135 135
  @return: the desired exit code
136 136

  
137 137
  """
138
  if (opts.ndparams is None and opts.alloc_policy is None and
139
      not (opts.hv_state or opts.disk_state)):
138
  if (opts.ndparams is None and opts.alloc_policy is None
139
      and not opts.diskparams and not opts.hv_state and not opts.disk_state):
140 140
    ToStderr("Please give at least one of the parameters.")
141 141
    return 1
142 142

  

Also available in: Unified diff