def aodh(cls): """aodh client :rtype: aodhclient.v2.client.Client """ if not cls._aodh: cls._aodh = os_clients.aodh_client(cls._conf) return cls._aodh
def client(self): if not self._client: self._client = os_clients.aodh_client() return self._client
def __init__(self): super(AodhNotifier, self).__init__() self.client = os_clients.aodh_client()