From cd4f2e328803e6fdd17bf8f446bf565158831fe0 Mon Sep 17 00:00:00 2001 From: Benjamin Ray Date: Wed, 8 Jul 2026 13:04:47 -0400 Subject: [PATCH] Check for plugin intialization in __contains__ Node.__contains__ did not check that plugin data was loaded, which caused a bug in pxconf hosts. --- lib/phoenix/node.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/phoenix/node.py b/lib/phoenix/node.py index 9cf2cd0..6f7485c 100755 --- a/lib/phoenix/node.py +++ b/lib/phoenix/node.py @@ -276,6 +276,10 @@ def __delitem__(self, key): raise NotImplementedError("Attributes cannot be deleted from a node") def __contains__(self, key): + if not self.ran_plugins: + self.run_plugins() + if not self.linked_model: + self.link_model() return key in self.data def addlayer(self, layer, position=None):