Esempio n. 1
0
    def _delete(self, context, resource, force=True):
        # Delete all share group snapshots
        for snap in resource['snapshots']:
            db.share_group_snapshot_destroy(context, snap['id'])

        # Delete all shares in share group
        for share in db.get_all_shares_by_share_group(context, resource['id']):
            db.share_delete(context, share['id'])

        db.share_group_destroy(context.elevated(), resource['id'])
Esempio n. 2
0
 def _delete(self, context, resource, force=True):
     db.share_group_snapshot_destroy(context.elevated(), resource['id'])
Esempio n. 3
0
 def _delete(self, context, resource, force=True):
     db.share_group_snapshot_destroy(context.elevated(), resource['id'])