We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98c6532 commit aebd630Copy full SHA for aebd630
1 file changed
cterasdk/cio/edge/types.py
@@ -7,9 +7,11 @@ class EdgePath(BasePath):
7
"""
8
Edge Filer Path Object
9
10
+ Namespace = '/'
11
- def __init__(self, scope, reference):
12
- super().__init__(scope, reference or '.')
+ @staticmethod
13
+ def from_context(reference):
14
+ return EdgePath(EdgePath.Namespace, reference)
15
16
17
class EdgeResource(BaseResource):
@@ -58,7 +60,7 @@ def resolve(path):
58
60
return path.path
59
61
62
if path is None or isinstance(path, str):
- return EdgePath(path)
63
+ return EdgePath.from_context(path)
64
65
raise ValueError(f'Error: Could not resolve path: {path}. Type: {type(path)}')
66
0 commit comments