def get_unhealthy_pending_nodes(self):
        """
        Get a list of configured nodes that don't exist or aren't healthy.
        """
        nodes = self.get_all_pending_nodes()

        # Check that all running nodes are healthy
        unhealthy = [
            node for node in nodes
            if node.is_running and not node.is_healthy
        ]

        # Ensure that all roles are filled exactly once with healthy nodes
        for aws_type, confs in self.deployment_confs.items():
            for node_name, node_confs in confs.items():
                node = self.get_pending_node(aws_type, node_name)
                if not node:
                    mock_node = self.get_blank_node(aws_type)
                    mock_node.name = node_name
                    unhealthy.append(mock_node)
                    logger.info("Missing node: %s-%s" % (aws_type, node_name))
                    continue
                if not node.is_healthy:
                    unhealthy.append(node)
                    logger.info(node % "Node unhealthy: %s")

        return unhealthy
dataset/ETHPy150Open winhamwr/neckbeard/neckbeard/environment_manager.py/Deployment.get_unhealthy_pending_nodes/swapped operands of `%`