def sync(self):
        """ Downloads a fresh set of nodes form the API.
        """
        self.logger.debug("Synchronizing remote nodes")
        """only get the resource group for the current cluster 
        """
        self.getResourceGroups()
        self.remote_servers = []
        if self.cluster_node_rg is not None:
            self.remote_servers = list(self.compute_client.virtual_machines.list(self.cluster_node_rg))
        else:
            self.logger.warning("No Azure cluster node resource group was found, the node list may be incorrect.")
            self.remote_servers = list(self.compute_client.virtual_machines.list_all())

        self.logger.info("Fetched %s remote servers" % len(self.remote_servers))
 Downloads a fresh set of nodes form the API.
        
powerfulseal/clouddrivers/azure_driver.py