'Update RAID stats using the input method.'

@GlancesPlugin._check_decorator
@GlancesPlugin._log_result_decorator
def update(self):

    self.reset()
    if (self.input_method == 'local'):
        try:
            mds = MdStat()
            self.stats = mds.get_stats()['arrays']
        except Exception as e:
            logger.debug(('Can    not    grab    RAID    stats    (%s)' % e))
            return self.stats
    elif (self.input_method == 'snmp'):
        pass
    return self.stats
