def FormatParamsDictInfo(param_dict, actual, roman=False):
  ret = {}
  for (key, data) in actual.items():
    if isinstance(data, dict) and data:
      ret[key] = FormatParamsDictInfo(param_dict.get(key, {}), data, roman)
    else:
      default_str = "default (%s)" % compat.TryToRoman(data, roman)
      ret[key] = str(compat.TryToRoman(param_dict.get(key, default_str), roman))
  return ret
Formats a parameter dictionary.
dataset/ETHPy150Open ganeti/ganeti/lib/cli.py/FormatParamsDictInfo