def MakeNodePath(node, path):
  (_, basedir) = qa_config.GetVclusterSettings()

  if isinstance(node, basestring):
    name = node
  else:
    name = node.primary

  if basedir:
    assert path.startswith("/")
    return "%s%s" % (vcluster.MakeNodeRoot(basedir, name), path)
  else:
    return path
Builds an absolute path for a virtual node.
dataset/ETHPy150Open ganeti/ganeti/qa/qa_utils.py/MakeNodePath