diff --git a/src/spaceone/cost_analysis/conf/global_conf.py b/src/spaceone/cost_analysis/conf/global_conf.py index d45ba6e5..20a73857 100644 --- a/src/spaceone/cost_analysis/conf/global_conf.py +++ b/src/spaceone/cost_analysis/conf/global_conf.py @@ -33,7 +33,7 @@ CONNECTORS = { "SpaceConnector": { - "backend": "spaceone.core.connector.space_connector.SpaceConnector", + "backend": "spaceone.core.connector.space_connector:SpaceConnector", "endpoints": { "identity": "grpc://identity:50051", "plugin": "grpc://plugin:50051", diff --git a/src/spaceone/cost_analysis/manager/notification_manager.py b/src/spaceone/cost_analysis/manager/notification_manager.py index d1b3a3ec..7e84b06d 100644 --- a/src/spaceone/cost_analysis/manager/notification_manager.py +++ b/src/spaceone/cost_analysis/manager/notification_manager.py @@ -8,13 +8,12 @@ class NotificationManager(BaseManager): - def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) - self.notification_connector: SpaceConnector = self.locator.get_connector('SpaceConnector', - service='notification', - token=config.get_global('TOKEN')) + self.notification_connector: SpaceConnector = self.locator.get_connector( + "SpaceConnector", service="notification", token=config.get_global("TOKEN") + ) def create_notification(self, message): - _LOGGER.debug(f'Notify message: {message}') - return self.notification_connector.dispatch('Notification.create', message) + _LOGGER.debug(f"Notify message: {message}") + return self.notification_connector.dispatch("Notification.create", message)