Skip to content

Commit

Permalink
Add failover-state as a valid ltype
Browse files Browse the repository at this point in the history
The previous commit which added lookup of failover-state object attributes was missing this.
  • Loading branch information
jonjacs authored May 9, 2022
1 parent b7c0212 commit 96f6389
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 @@ -1238,7 +1238,7 @@ def __lookup(self, ltype, **kwargs):
@raises socket.error:
"""
ltype_utf = ltype.encode("utf-8")
assert ltype_utf in [b"host", b"lease"]
assert ltype_utf in [b"host", b"lease", b"failover-state"]
msg = OmapiMessage.open(ltype_utf)
for k in kwargs:
if k == "raw":
Expand Down

0 comments on commit 96f6389

Please sign in to comment.