def sync(self):
        """ Downloads a fresh set of nodes from the API.
        """
        self.logger.debug("Synchronizing remote nodes")
        self.remote_servers = []
        self.zones = get_zones_of_region(self.conn, self.region, self.project)
        if self.zones is not None:
            for zone in self.zones:
                instances = list_instances(self.conn, self.project, zone)
                if instances is not None:
                    for instance in instances:
                        self.remote_servers.append(instance)
        self.logger.info("Fetched %s remote servers" %
                         len(self.remote_servers))
 Downloads a fresh set of nodes from the API.
        
powerfulseal/clouddrivers/gcp_driver.py