Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host: added field reported_data #1202

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -4203,6 +4203,7 @@ def __init__(self, server_config=None, **kwargs):
'puppetclass': entity_fields.OneToManyField(PuppetClass),
'puppet_proxy': entity_fields.OneToOneField(SmartProxy),
'realm': entity_fields.OneToOneField(Realm),
'reported_data': entity_fields.DictField(),
'root_pass': entity_fields.StringField(length=(8, 30), str_type='alpha'),
'subnet': entity_fields.OneToOneField(Subnet),
'token': entity_fields.StringField(),
Expand Down Expand Up @@ -4714,13 +4715,12 @@ def read(self, entity=None, attrs=None, ignore=None, params=None):
attrs['host_parameters_attributes'] = attrs.pop('parameters')
else:
ignore.add('host_parameters_attributes')
if 'content_facet_attributes' not in attrs:
ignore.add('content_facet_attributes')
if 'traces_status' not in attrs and 'traces_status_label' not in attrs:
ignore.add('traces_status')
ignore.add('traces_status_label')
if 'token' not in attrs:
ignore.add('token')
for optional_attr in ['content_facet_attributes', 'token', 'reported_data']:
if optional_attr not in attrs:
ignore.add(optional_attr)
ignore.add('compute_attributes')
ignore.add('interfaces_attributes')
ignore.add('root_pass')
Expand Down
Loading