Revision da5f09ef lib/cli.py

b/lib/cli.py
3717 3717
    utils.ForceDictType(specs, forced_type, allowed_values=allowed_values)
3718 3718

  
3719 3719
  # then transpose
3720
  ispecs = {
3721
    constants.ISPECS_MIN: {},
3722
    constants.ISPECS_MAX: {},
3723
    constants.ISPECS_STD: {},
3724
    }
3720 3725
  for (name, specs) in ispecs_transposed.iteritems():
3721 3726
    assert name in constants.ISPECS_PARAMETERS
3722 3727
    for key, val in specs.items(): # {min: .. ,max: .., std: ..}
3723
      ipolicy[key][name] = val
3728
      assert key in ispecs
3729
      ispecs[key][name] = val
3730
  for key in constants.ISPECS_MINMAX_KEYS:
3731
    ipolicy[constants.ISPECS_MINMAX][key] = ispecs[key]
3732
  ipolicy[constants.ISPECS_STD] = ispecs[constants.ISPECS_STD]
3724 3733

  
3725 3734

  
3726 3735
def CreateIPolicyFromOpts(ispecs_mem_size=None,

Also available in: Unified diff