1. expose db_api so that template can be deleted upon exception 2. delete both user_creds and raw_template in db_api.stack_create before raising exception.
Please let me know on how to proceed. The second one is crude, but will not try and add anything new. first one in a cleaner approach, not sure why template.delete was not exposed in the first place.
raw_temlate delete:
1. expose db_api so that template can be deleted upon exception 2. delete both user_creds and raw_template in db_api.stack_create before raising exception.
Please let me know on how to proceed. The second one is crude, but will not try and add anything new. first one in a cleaner approach, not sure why template.delete was not exposed in the first place.