def _notify_about_cgsnapshot_usage(self, context, cgsnapshot, event_suffix, snapshots=None, extra_usage_info=None):
    vol_utils.notify_about_cgsnapshot_usage(context, cgsnapshot, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
    if (not snapshots):
        snapshots = objects.SnapshotList.get_all_for_cgsnapshot(context, cgsnapshot.id)
    if snapshots:
        for snapshot in snapshots:
            vol_utils.notify_about_snapshot_usage(context, snapshot, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
def _notify_about_cgsnapshot_usage(self, context, cgsnapshot, event_suffix, snapshots=None, extra_usage_info=None):
    vol_utils.notify_about_cgsnapshot_usage(context, cgsnapshot, event_suffix, extra_usage_info=extra_usage_info, host=self.host)
    if (not snapshots):
        snapshots = objects.SnapshotList.get_all_for_cgsnapshot(context, cgsnapshot.id)
    if snapshots:
        for snapshot in snapshots:
            vol_utils.notify_about_snapshot_usage(context, snapshot, event_suffix, extra_usage_info=extra_usage_info, host=self.host)