def Sha1Hmac(key, text, salt=None):
  if salt:
    salted_text = salt + text
  else:
    salted_text = text

  return hmac.new(key, salted_text, compat.sha1).hexdigest()
Get reference to the vCenter cluster with the specified name.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/hash.py/Sha1Hmac--crossover with--dataset/ETHPy150Open openstack/nova/nova/virt/vmwareapi/vm_util.py/get_cluster_ref_by_name