

def _get_secret(self, ctxt, key_id):
    "Returns the metadata of the secret.\n\n        :param ctxt: contains information of the user and the environment for\n                     the request (nova/context.py)\n        :param key_id: UUID of the secret\n\n        :return: the secret's metadata\n        :raises Exception: if there is an error retrieving the data\n        "
    barbican_client = ctxt._get_barbican_client(ctxt)
    try:
        secret_ref = self._create_secret_ref(key_id)
        return barbican_client.secrets.get(secret_ref)
    except Exception as e:
        with excutils.save_and_reraise_exception():
            LOG.error(_LE('Error getting secret metadata: %s'), e)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/keymgr/barbican.py BarbicanKeyManager._get_secret/VarMisuse@18/143 `self`->`ctxt`