Sync repository in specified environments

def sync_repo(self, repo_name=None, envs=[], query='/repositories/'):
        """
        Sync repository in specified environments
        """
        juicer.utils.Log.log_debug(
            "Sync Repo %s In: %s" % (repo_name, ",".join(envs)))

        data = {
            'override_config': {
                'verify_checksum': 'true',
                'verify_size': 'true'
                },
            }

        for env in envs:
            url = "%s%s-%s/actions/sync/" % (query, repo_name, env)
            juicer.utils.Log.log_info("%s:", env)
            _r = self.connectors[env].post(url, data)
            if _r.status_code == Constants.PULP_POST_ACCEPTED:
                juicer.utils.Log.log_info("`%s` sync scheduled" % repo_name)
            else:
                _r.raise_for_status()
        return True