Skip to content

Commit

Permalink
Fixing extracting metric path for SFS Turbo (#498)
Browse files Browse the repository at this point in the history
Fixing extracting metric path for SFS Turbo

Reviewed-by: Anton Sidelnikov
Reviewed-by: github-advanced-security[bot]
  • Loading branch information
vladimirhasko authored Nov 27, 2024
1 parent 5be7ab6 commit ac6afe9
Show file tree
Hide file tree
Showing 2 changed files with 441 additions and 0 deletions.
4 changes: 4 additions & 0 deletions otcextensions/sdk/sfsturbo/v1/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from openstack import proxy
from openstack import resource

from otcextensions.common.utils import extract_url_parts
from otcextensions.sdk.sfsturbo.v1 import share as _sfs
from otcextensions.common.exc import HTTPMethodNotAllowed

Expand All @@ -20,6 +21,9 @@ class Proxy(proxy.Proxy):

skip_discovery = True

def _extract_name(self, url, service_type=None, project_id=None):
return extract_url_parts(url, project_id)

# ========== Sfs Turbo ==========
def shares(self, **query):
"""Return a generator of sfs turbo file systems
Expand Down
Loading

0 comments on commit ac6afe9

Please sign in to comment.