Skip to content

Commit

Permalink
Merge pull request #34 from mrd000/patch-1
Browse files Browse the repository at this point in the history
Fix for underscore to dash conversion
  • Loading branch information
cygnusb authored Jul 1, 2020
2 parents 3705674 + 33237cd commit e844e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypureomapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ def __lookup(self, ltype, **kwargs):
elif _k == "name":
msg.obj.append((b"name", kwargs[k].encode('utf-8')))
else:
msg.obj.append((str(k).encode(), kwargs[k].encode('utf-8')))
msg.obj.append((str(_k).encode(), kwargs[k].encode('utf-8')))
response = self.query_server(msg)
if response.opcode != OMAPI_OP_UPDATE:
raise OmapiErrorNotFound()
Expand Down

0 comments on commit e844e04

Please sign in to comment.