def _resource_names(self, size=None, update_rsrc_data=True): candidates = self.properties[self.SERVERS] if size is None: return iter(candidates) return itertools.islice(candidates, size)