'Rename a volume object (could be snapshot) in Purity.
This will not raise an exception if the object does not exist'

def _rename_volume_object(self, old_name, new_name, raise_not_exist=False):

    current_array = self._get_current_array()
    try:
        current_array.rename_volume(old_name, new_name)
    except purestorage.PureHTTPError as err:
        with excutils.save_and_reraise_exception() as ctxt:
            if ((err.code == 400) and (ERR_MSG_NOT_EXIST in err.text)):
                ctxt.reraise = raise_not_exist
                LOG.warning('Unable    to    rename    %(old_name)s,    error    message:    %(error)s', {'old_name': old_name, 'error': err.text})
    return new_name
