From ef6ea3a9271c46a98b18d56873189eddcd33def2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 6 May 2016 10:49:35 +0200 Subject: [PATCH] Little tweak. --- pillarsdk/projects.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pillarsdk/projects.py b/pillarsdk/projects.py index 037be97..12dd42d 100644 --- a/pillarsdk/projects.py +++ b/pillarsdk/projects.py @@ -109,9 +109,7 @@ class Project(List, Find, Create, Post, Update, Delete, Replace): 'user_id': str(user_id), 'action': action} headers = self.http_headers() - response = api.post(url, payload, headers) - if response['_status'] != 'OK': - return False + return api.post(url, payload, headers) def add_user(self, user_id, api=None): """Add a user to a project given its ObjectId."""