def dont_self_destruct(self, items):
        """ Don't kill its own pod or node """
        HOST_IP = os.environ.get("HOST_IP")
        POD_NAME = os.environ.get("POD_NAME", os.environ.get("HOSTNAME"))
        attrs = dict(
            ip=HOST_IP,
            extIp=HOST_IP,
            name=POD_NAME,
        )
        matches = set()
        for item in items:
            for attr, val in attrs.items():
                if val and getattr(item, attr, None) == val:
                    matches.add(item)
        if len(matches) > 0:
            self.logger.warning("Self-destruction prevention. Filtering out: %r", matches)
        return [
            item
            for item in items
            if item not in matches
        ]
 Don't kill its own pod or node 
powerfulseal/policy/action_nodes_pods.py