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)