From 9a6af611da45f002607db0163665b47ee38813b9 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Tue, 20 Oct 2015 11:38:34 +0200 Subject: [PATCH] Added has_method to NodeType --- pillarsdk/nodes.py | 5 +++++ 1 file changed, 5 insertions(+) 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