'Get the LUN attribute if found else None.'

def _get_lun_attr(self, name, attr):

    try:
        attr = getattr(self._get_lun_from_table(name), attr)
        return attr
    except exception.VolumeNotFound as e:
        LOG.error('Message:    %s', e.msg)
    except Exception as e:
        LOG.error('Error    getting    LUN    attribute.    Exception:    %s', e)
    return None
