diff --git a/src/spaceone/plugin/manager/identity_manager.py b/src/spaceone/plugin/manager/identity_manager.py index 5d42bfb..4d69791 100644 --- a/src/spaceone/plugin/manager/identity_manager.py +++ b/src/spaceone/plugin/manager/identity_manager.py @@ -8,4 +8,5 @@ def __init__(self, *args, **kwargs): self.identity_connector: SpaceConnector = self.locator.get_connector('SpaceConnector', service='identity') def list_domains(self, query): - return self.identity_connector.dispatch('Domain.list', query) + print(query) + return self.identity_connector.dispatch('Domain.list', {'query': query}) diff --git a/src/spaceone/plugin/scheduler/cleanup_scheduler.py b/src/spaceone/plugin/scheduler/cleanup_scheduler.py index b2f10f0..05c4ef1 100644 --- a/src/spaceone/plugin/scheduler/cleanup_scheduler.py +++ b/src/spaceone/plugin/scheduler/cleanup_scheduler.py @@ -8,7 +8,7 @@ from spaceone.core.scheduler import HourlyScheduler from spaceone.core.auth.jwt.jwt_util import JWTUtil -__all__ = ['StatHourlyScheduler'] +__all__ = ['CleanupScheduler'] _LOGGER = logging.getLogger(__name__) @@ -41,6 +41,7 @@ def _validate_token(token): token = value return token + class CleanupScheduler(HourlyScheduler): """ Clean-up unused plugins Some plugins are not used after upgrade @@ -156,6 +157,7 @@ def _create_job_request(self, domain): _LOGGER.debug(f'[_create_job_request] tasks: {stp}') return stp + class Consul: def __init__(self, config): """