Exemple #1
0
def delete_job(id, trust_id=None):
    if not trust_id:
        trust_id = db_api.get_job(id).trust_id

    modified_count = db_api.delete_job(id)
    if modified_count:
        # Delete trust only together with deleting trigger.
        keystone_utils.delete_trust(trust_id)

    return 0 != modified_count
Exemple #2
0
 def delete(self, id):
     LOG.info("Delete resource.", resource={'type': self.type, 'id': id})
     return db_api.delete_job(id)