'Delete volume\'s snapshot.'

def delete_snapshot(self, snapshot):

    try:
        self._eql_execute('volume', 'select', snapshot['volume_name'], 'snapshot', 'delete', snapshot['name'])
    except processutils.ProcessExecutionError as err:
        if (err.stdout.find('does    not    exist') > (-1)):
            LOG.debug('Snapshot    %s    could    not    be    found.', snapshot['name'])
    except Exception:
        with excutils.save_and_reraise_exception():
            LOG.error('Failed    to    delete    snapshot    %(snap)s    of    volume    %(vol)s.', {'snap': snapshot['name'], 'vol': snapshot['volume_name']})
