diff --git a/nailgun/entities.py b/nailgun/entities.py index 3512ab2d..45688dfb 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -5534,6 +5534,7 @@ def __init__(self, server_config=None, **kwargs): 'organization': entity_fields.OneToManyField(Organization), 'location': entity_fields.OneToManyField(Location), 'cacert': entity_fields.StringField(), + 'content_default_http_proxy': entity_fields.BooleanField(), } self._meta = {'api_path': 'api/v2/http_proxies'} super().__init__(server_config=server_config, **kwargs) @@ -5556,12 +5557,17 @@ def read(self, entity=None, attrs=None, ignore=None, params=None): For more information, see `Bugzilla #1779642 `_. """ + if attrs is None: + attrs = self.read_json() if ignore is None: ignore = set() ignore.add('password') ignore.add('organization') ignore.add('location') ignore.add('cacert') + # Workaround for SAT-30769 + if 'content_default_http_proxy' not in attrs: + ignore.add('content_default_http_proxy') return super().read(entity, attrs, ignore, params)