Skip to content

Commit afaf8d6

Browse files
jeremylenzclaude
andcommitted
Ignore content_view_environment_id in HostGroup read()
This field is write-only — the API response does not include it, so read() must skip it to avoid a KeyError. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d3a83a6 commit afaf8d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

nailgun/entities.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4118,6 +4118,7 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
41184118
ignore.add('root_pass')
41194119
ignore.add('kickstart_repository')
41204120
ignore.add('compute_resource')
4121+
ignore.add('content_view_environment_id')
41214122

41224123
attrs = attrs or self.read_json()
41234124
attrs['parent_id'] = attrs.pop('ancestry') # either an ID or None

0 commit comments

Comments
 (0)