Skip to content

Commit 58b8060

Browse files
committed
Remove direct reference to proto enums
Proto enums are not directly accessible until 3.8.0, < 3.8.0 usage is key or value based.
1 parent 0ae4cc7 commit 58b8060

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cisco_gnmi/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def get(
116116
self,
117117
paths,
118118
prefix=None,
119-
data_type=proto.gnmi_pb2.GetRequest.DataType.ALL,
120-
encoding=proto.gnmi_pb2.Encoding.JSON_IETF,
119+
data_type="ALL",
120+
encoding="JSON_IETF",
121121
use_models=None,
122122
extension=None,
123123
):

0 commit comments

Comments
 (0)