diff --git a/pillarsdk/nodes.py b/pillarsdk/nodes.py index 407bc2c..5de23d7 100755 --- a/pillarsdk/nodes.py +++ b/pillarsdk/nodes.py @@ -80,3 +80,8 @@ class NodeType(List, Find, Create, Post, Delete): """NodeType class wrapping the REST node_types endpoint """ path = "node_types" + + def has_method(self, method): + if method in self.allowed_methods: + return True + return False