@periodic_task.periodic_task
def _report_driver_status(self, context):
    if (not self.driver.initialized):
        if (self.driver.configuration.config_group is None):
            config_group = ''
        else:
            config_group = ('(config name %s)' % self.driver.configuration.config_group)
        LOG.warning(_LW('Update driver status failed: %(config_group)s is uninitialized.'), {'config_group': config_group}, resource={'type': 'driver', 'id': self.driver.__class__.__name__})
    else:
        volume_stats = self.driver.get_volume_stats(refresh=True)
        if self.extra_capabilities:
            volume_stats.update(self.extra_capabilities)
        if volume_stats:
            self._append_volume_stats(volume_stats)
            volume_stats = self._append_filter_goodness_functions(volume_stats)
            self.update_service_capabilities(volume_stats)
@periodic_task.periodic_task
def _report_driver_status(self, context):
    if (not self.driver.initialized):
        if (self.driver.configuration.config_group is None):
            config_group = 
        else:
            config_group = ('(config name %s)' % self.driver.configuration.config_group)
        LOG.warning(_LW('Update driver status failed: %(config_group)s is uninitialized.'), {'config_group': config_group}, resource={'type': 'driver', 'id': self.driver.__class__.__name__})
    else:
        volume_stats = self.driver.get_volume_stats(refresh=True)
        if self.extra_capabilities:
            volume_stats.update(self.extra_capabilities)
        if volume_stats:
            self._append_volume_stats(volume_stats)
            volume_stats = self._append_filter_goodness_functions(volume_stats)
            self.update_service_capabilities(volume_stats)