diff --git a/salt/_utils/kubernetes_utils.py b/salt/_utils/kubernetes_utils.py index f78494365c..ed2926a4f7 100644 --- a/salt/_utils/kubernetes_utils.py +++ b/salt/_utils/kubernetes_utils.py @@ -433,13 +433,6 @@ def method(*args, **kwargs): result = base_method(*args, **kwargs) - if verb == 'list': - return CustomObject({ - 'kind': '{}List'.format(self.kind), - 'apiVersion': '{s.group}/{s.version}'.format(s=self), - 'items': [CustomObject(obj) for obj in result], - }) - # TODO: do we have a result for `delete` methods? return CustomObject(result)