def _notify_about_consistencygroup_usage(self, context, group, event_suffix, volumes=None, extra_usage_info=None):
    vol_utils.notify_about_consistencygroup_usage(context, group, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
    if (not volumes):
        volumes = self.db.volume_get_all_by_group(context, group.id)
    if volumes:
        for volume in volumes:
            vol_utils.notify_about_volume_usage(context, volume, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
def _notify_about_consistencygroup_usage(self, context, group, event_suffix, volumes=None, extra_usage_info=None):
    vol_utils.notify_about_consistencygroup_usage(context, group, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
    if (not volumes):
        volumes = self.db.volume_get_all_by_group(context, group.id)
    if volumes:
        for volume in volumes:
            vol_utils.notify_about_volume_usage(context, volume, event_suffix, extra_usage_info=extra_usage_info, host=self.host)