Skip to content

Commit

Permalink
Removed Master Arbitration for Get
Browse files Browse the repository at this point in the history
  • Loading branch information
sai1274 committed Feb 23, 2024
1 parent c5bdf4c commit b597be8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pygnmi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype:

# Set Protobuf value for encoding
pb_encoding = self.convert_encoding(encoding)
gnmi_extension = get_gnmi_extension(ext=extension)

# Gnmi PREFIX
try:
Expand All @@ -449,10 +448,7 @@ def get(self, prefix: str = "", path: list = None, target: str = None, datatype:
raise gNMIException("Conversion of gNMI paths to the Protobuf format failed", e)

try:
if gnmi_extension:
gnmi_message_request = GetRequest(prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding, extension = [gnmi_extension])
else:
gnmi_message_request = GetRequest(prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding)
gnmi_message_request = GetRequest(prefix=protobuf_prefix, path=protobuf_paths, type=pb_datatype, encoding=pb_encoding)
debug_gnmi_msg(self.__debug, gnmi_message_request, "gNMI request")

gnmi_message_response = self.__stub.Get(gnmi_message_request, metadata=self.__metadata)
Expand Down

0 comments on commit b597be8

Please sign in to comment.