def is_empty(self):
        """Validate definition of all attributes of this :class:`Cluster` instance.

        :returns: ``True`` if all attributes of the current :class:`Cluster` are unpopulated.
        """
        return all((self.initialize is None, self.config is None, self.leader is None, self.status.is_empty(),
                    self.members == [], self.failover is None, self.sync.version is None,
                    self.history is None, self.failsafe is None, self.workers == {}))
Validate definition of all attributes of this :class:`Cluster` instance.

        :returns: ``True`` if all attributes of the current :class:`Cluster` are unpopulated.
        
patroni/dcs/__init__.py