From 674b10c3aa13375315252575d4f9562dd4315568 Mon Sep 17 00:00:00 2001 From: Sam Bible Date: Tue, 16 May 2023 16:03:52 -0500 Subject: [PATCH] Fix ContentViewComponent add method --- nailgun/entities.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index ad967c0d..f5ba85e4 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -35,7 +35,6 @@ from nailgun import client from nailgun import entity_fields from nailgun.entity_mixins import _get_entity_ids -from nailgun.entity_mixins import _payload from nailgun.entity_mixins import _poll_task from nailgun.entity_mixins import Entity from nailgun.entity_mixins import EntityCreateMixin @@ -2864,8 +2863,6 @@ def add(self, synchronous=True, timeout=None, **kwargs): if 'data' not in kwargs: # data is required kwargs['data'] = dict() - if 'component_ids' not in kwargs['data']: - kwargs['data']['components'] = [_payload(self.get_fields(), self.get_values())] kwargs.update(self._server_config.get_client_kwargs()) response = client.put(self.path('add'), **kwargs) return _handle_response(response, self._server_config, synchronous, timeout)