From 96f6389bfdd75e20c2096023b8b467948080faa1 Mon Sep 17 00:00:00 2001 From: Jonas Jacobsson <30898404+jonjacs@users.noreply.github.com> Date: Mon, 9 May 2022 16:09:02 +0200 Subject: [PATCH] Add failover-state as a valid ltype The previous commit which added lookup of failover-state object attributes was missing this. --- pypureomapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypureomapi.py b/pypureomapi.py index e031ff9..1db41a0 100644 --- a/pypureomapi.py +++ b/pypureomapi.py @@ -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":