Revision 6ea2bb8c

b/lib/cmdlib.py
827 827
      raise errors.OpPrereqError("Invalid key in new ipolicy: %s" % key,
828 828
                                 errors.ECODE_INVAL)
829 829
    if key in constants.IPOLICY_ISPECS:
830
      utils.ForceDictType(value, constants.ISPECS_PARAMETER_TYPES)
831 830
      ipolicy[key] = _GetUpdatedParams(old_ipolicy.get(key, {}), value,
832 831
                                       use_none=use_none,
833 832
                                       use_default=use_default)
833
      utils.ForceDictType(ipolicy[key], constants.ISPECS_PARAMETER_TYPES)
834 834
    else:
835 835
      if (not value or value == [constants.VALUE_DEFAULT] or
836 836
          value == constants.VALUE_DEFAULT):
b/qa/qa_group.py
98 98
                   "min=%s,max=%s,std=0" % (min_v, max_v), group1], fail=True)
99 99
    AssertCommand(["gnt-group", "modify", "--specs-mem-size",
100 100
                   "min=%s,max=%s" % (min_v, max_v), group1])
101
    AssertCommand(["gnt-group", "modify", "--specs-mem-size",
102
                   "min=default,max=default", group1])
103
    AssertCommand(["gnt-group", "modify", "--ipolicy-vcpu-ratio",
104
                   "3.5", group1])
105
    AssertCommand(["gnt-group", "modify", "--ipolicy-vcpu-ratio",
106
                   "default", group1])
101 107
    AssertCommand(["gnt-group", "modify",
102 108
                   "--node-parameters", "spindle_count=10", group1])
103 109
    if qa_config.TestEnabled("htools"):

Also available in: Unified diff