def lookup_cert(self, key):
        """
        Search through keys
        """
        if not self.consumers:
            log.critical(("No consumers defined in settings."
                          "Have you created a configuration file?"))
            return None

        consumer = self.consumers.get(key)
        if not consumer:
            log.info("Did not find consumer, using key: %s ", key)
            return None
        cert = consumer.get('cert', None)
        return cert
def lookup_cert ( self , key ) : if not self . consumers : log . critical ( ( "No consumers defined in settings." "Have you created a configuration file?" ) ) return None consumer = self . consumers . get ( key ) if not consumer : log . info ( "Did not find consumer, using key: %s " , key ) return None cert = consumer . get ( 'cert' , None ) return cert
Search through keys