component.assembly_uuid raises an exception when assembly_id is None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Solum |
Fix Released
|
Undecided
|
Pierre Padrixe (stannie) |
Bug Description
component.
And when I am doing Component.as_dict with no assembly_id set, it raises a ResourceNotFound: assemblies could not be found.
It shouldn't raise any exception and just retourn the dict without the field.
(Note that assembly_id FK is nullable in Component)
as_dict stacktrace:
File "solum/
d[k] = self[k]
File "solum/
return getattr(self, key)
File "solum/
return objects.
File "solum/
cls.
File "solum/
raise exception.
ResourceNotFound: The assemblies resource None could not be found.
Changed in solum: | |
assignee: | nobody → Pierre Padrixe (stannie) (pierre-padrixe) |
Changed in solum: | |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/86974
Review: https:/