Skip to content

Commit

Permalink
Merge pull request #26 from whdalsrnt/master
Browse files Browse the repository at this point in the history
fix: fix identity query bug
  • Loading branch information
whdalsrnt authored Jul 18, 2023
2 parents 6a2e5e6 + 51772f8 commit 083fa8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/spaceone/plugin/manager/identity_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
4 changes: 3 additions & 1 deletion src/spaceone/plugin/scheduler/cleanup_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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):
"""
Expand Down

0 comments on commit 083fa8c

Please sign in to comment.