commit e889d66e07183d34849273ae68dc096c0616fa21
Author: Steve Baker <email address hidden>
Date: Tue Aug 25 13:38:07 2015 +1200
Don't raise exception when get nested stack
1. Stack.load() won't return None, instead will raise
notFound exception if we can't get the stack from db.
So we should catch the notFound exception in
StackResource.nested() when loading.
2. Return None if we catch the notFound when get the
nested, due there are many places where we call the
nested(), and raise the notFound exception makes no sense.
(cherry-picked from b101190f3261535daf5848a5a77e8902f3a7a4a1)
Closes-Bug: #1479579
Change-Id: I2540ca13572dfe628e6fc596815bee427b41290f
Reviewed: https:/ /review. openstack. org/216481 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=e889d66e071 83d34849273ae68 dc096c0616fa21
Committed: https:/
Submitter: Jenkins
Branch: stable/kilo
commit e889d66e07183d3 4849273ae68dc09 6c0616fa21
Author: Steve Baker <email address hidden>
Date: Tue Aug 25 13:38:07 2015 +1200
Don't raise exception when get nested stack
1. Stack.load() won't return None, instead will raise ce.nested( ) when loading.
notFound exception if we can't get the stack from db.
So we should catch the notFound exception in
StackResour
2. Return None if we catch the notFound when get the
nested, due there are many places where we call the
nested(), and raise the notFound exception makes no sense.
(cherry-picked from b101190f3261535 daf5848a5a77e89 02f3a7a4a1) 628e6fc596815be e427b41290f
Closes-Bug: #1479579
Change-Id: I2540ca13572dfe