Skip to content

Commit

Permalink
Fix DA bug which happens when RegistrarAgent fields are empty
Browse files Browse the repository at this point in the history
Signed-off-by: Jean Snyman <[email protected]>
  • Loading branch information
stringlytyped committed Apr 30, 2024
1 parent b3eaa3e commit ca3782a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keylime/models/registrar/registrar_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def commit_changes(self):

# Prepare all record data to be sent to a DA backend according to each field's data type
for name, field in self.__class__.fields.items():
agent_data[name] = field.type.da_dump(self._record_values[name])
agent_data[name] = field.type.da_dump(self._record_values.get(name))

# Write dumped data to DA backend as an "agent data" record
da_manager.backend.record_create(agent_data, None, None, None)
Expand Down

0 comments on commit ca3782a

Please sign in to comment.