Skip to content

Commit 2215560

Browse files
authored
Merge pull request #21 from marcsello/xr-pathfix
Fixed xpath duplicate origin in XR client
2 parents 6051075 + 8600a54 commit 2215560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cisco_gnmi/xr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,5 +338,5 @@ def parse_xpath_to_gnmi_path(self, xpath, origin=None):
338338
origin = None
339339
else:
340340
# module name
341-
origin = xpath.split(":")[0]
341+
origin, xpath = xpath.split(":", 1)
342342
return super(XRClient, self).parse_xpath_to_gnmi_path(xpath, origin)

0 commit comments

Comments
 (0)