Revision 8e47b5da lib/client/gnt_group.py

b/lib/client/gnt_group.py
130 130
  @return: the desired exit code
131 131

  
132 132
  """
133
  all_changes = {
134
    "ndparams": opts.ndparams,
135
    "alloc_policy": opts.alloc_policy,
136
  }
137

  
138
  if all_changes.values().count(None) == len(all_changes):
133
  if opts.ndparams is None and opts.alloc_policy is None:
139 134
    ToStderr("Please give at least one of the parameters.")
140 135
    return 1
141 136

  
142
  op = opcodes.OpGroupSetParams(group_name=args[0], # pylint: disable-msg=W0142
143
                                **all_changes)
137
  op = opcodes.OpGroupSetParams(group_name=args[0],
138
                                ndparams=opts.ndparams,
139
                                alloc_policy=opts.alloc_policy)
144 140
  result = SubmitOrSend(op, opts)
145 141

  
146 142
  if result:

Also available in: Unified diff