Allow as_dict with no assembly_id FK set in Component
Component.assembly_uuid used to raise an exception when no assembly_id
was set. It was an acceptable behavior but when you were calling as_dict
you were getting a ResourneNotFound and couldn't retrieve your dict.
The purpose of this patch is to allow the use of as_dict with no assembly
set as FK.
Reviewed: https:/ /review. openstack. org/86974 /git.openstack. org/cgit/ stackforge/ solum/commit/ ?id=e2368f5fdbf 98420eb820ae09b bcc91fc6a045ab
Committed: https:/
Submitter: Jenkins
Branch: master
commit e2368f5fdbf9842 0eb820ae09bbcc9 1fc6a045ab
Author: Pierre Padrixe <email address hidden>
Date: Mon Apr 14 10:49:32 2014 +0200
Allow as_dict with no assembly_id FK set in Component
Component. assembly_ uuid used to raise an exception when no assembly_id
was set. It was an acceptable behavior but when you were calling as_dict
you were getting a ResourneNotFound and couldn't retrieve your dict.
The purpose of this patch is to allow the use of as_dict with no assembly
set as FK.
Change-Id: I3518e0dfb3f856 31260474ba46514 6314e48a12c
Closes-Bug: #1306731