Skip to content

Commit

Permalink
Revert "fix: show dep volume failure (#1545)" (#1597)
Browse files Browse the repository at this point in the history
This reverts commit 15ea2ce.
  • Loading branch information
yangkaa authored Jan 2, 2025
1 parent d291e01 commit e621167
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions console/repositories/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ def get_by_dep_service_id(self, tenant_id, dep_service_id):
def get_service_mnts_filter_volume_type(self, tenant_id, service_id, volume_types=None):
conn = BaseConnection()
query = "mnt.tenant_id = '%s' and mnt.service_id = '%s'" % (tenant_id, service_id)
if volume_types:
vol_type_sql = " and volume.volume_type in ({})".format(','.join(["'%s'"] * len(volume_types)))
query += vol_type_sql % tuple(volume_types)

sql = """
select mnt.mnt_name,
mnt.mnt_dir,
Expand Down

0 comments on commit e621167

Please sign in to comment.