def deploy_server_groups(self, src_groups):
        dst_groups = self.get_server_groups()
        for src_group in src_groups:
            LOG.debug("Source HOST server_groups: %s",
                      pprint.pformat(src_group))
            dst_exists = False
            for dst_group in dst_groups:
                LOG.debug("Destination HOST server_groups: %s",
                          pprint.pformat(dst_group))
                if src_group['uuid'] == dst_group['uuid']:
                    if _compare_groups(src_group, dst_group):
                        LOG.info("skipping matching server_group in "
                                 "destination: %s", src_group['name'])
                        dst_exists = True
                    else:
                        LOG.info("deleting server_group collision "
                                 "in destination: %s", dst_group['name'])
                        self._delete_server_group(dst_group)
            if not dst_exists:
                self._deploy_server_group(src_group)
Count personal and group file space usage.
dataset/ETHPy150Open MirantisWorkloadMobility/CloudFerry/cloudferry/lib/os/compute/server_groups.py/ServerGroupsHandler.deploy_server_groups--crossover with--dataset/ETHPy150Open CenterForOpenScience/osf.io/scripts/analytics/tabulate_files_usage.py/count_usage