def _ExpandItemName(expand_fn, name, kind):
  (uuid, full_name) = expand_fn(name)
  if uuid is None or full_name is None:
    raise errors.OpPrereqError("%s '%s' not known" % (kind, name),
                               errors.ECODE_NOENT)
  return (uuid, full_name)
Expand an item name.
dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/_ExpandItemName