'Check if the volume exists on the Array.'

def _check_volume(self, volume):

    command = ['volume', 'select', volume['name'], 'show']
    try:
        self._eql_execute(*command)
    except processutils.ProcessExecutionError as err:
        with excutils.save_and_reraise_exception():
            if (err.stdout.find('does    not    exist.\n') > (-1)):
                LOG.debug('Volume    %s    does    not    exist,    it    may    have    already    been    deleted', volume['name'])
                raise exception.VolumeNotFound(volume_id=volume['id'])
