From 2c85df7b440fe17d8c4a17aa0fc7792422daed08 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 21:28:30 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- nailgun/entities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index c4831768..c1f30773 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -4891,8 +4891,8 @@ def read(self, entity=None, attrs=None, ignore=None, params=None): # the given host, but only if it does not have Puppet proxy assigned. if ( 'Puppet' not in _feature_list(self._server_config) - or 'puppetclasses' not in attrs - and not attrs['puppet_proxy'] + or ('puppetclasses' not in attrs + and not attrs['puppet_proxy']) ): ignore.add('puppetclass') result = super().read(entity, attrs, ignore, params)