From e088b56560a2218973e5ee870bfd3210683b37f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 2 May 2016 17:43:06 +0200 Subject: [PATCH] Pop more _deleted attributes. --- pillarsdk/nodes.py | 1 + pillarsdk/resource.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/pillarsdk/nodes.py b/pillarsdk/nodes.py index 22c0ba2..4389839 100755 --- a/pillarsdk/nodes.py +++ b/pillarsdk/nodes.py @@ -46,6 +46,7 @@ class Node(List, Find, Create, Post, Update, Delete, Replace): attributes.pop('_created') attributes.pop('_updated') attributes.pop('_links', None) + attributes.pop('_deleted', None) attributes.pop('allowed_methods') attributes = utils.remove_none_attributes(attributes) diff --git a/pillarsdk/resource.py b/pillarsdk/resource.py index eb1dc78..c992b6d 100644 --- a/pillarsdk/resource.py +++ b/pillarsdk/resource.py @@ -263,6 +263,7 @@ class Update(Resource): attributes.pop('_created') attributes.pop('_updated') attributes.pop('_links', None) + attributes.pop('_deleted', None) attributes = utils.remove_none_attributes(attributes) url = utils.join_url(self.path, str(self['_id'])) headers = utils.merge_dict( @@ -293,6 +294,7 @@ class Replace(Resource): attributes.pop('_created') attributes.pop('_updated') attributes.pop('_links', None) + attributes.pop('_deleted', None) if 'parent' in attributes: attributes.pop('parent') url = utils.join_url(self.path, str(self['_id']))