def run(self, node, platform, minutes):
        """
        Unmanage an Orion node
        """

        if self.config['unmanage_max'] > minutes:
            raise ValueError(
                "minutes ({}) greater than unmanage_max ({})".format(
                    minutes, self.config['unmanage_max']))

        self.connect(platform)

        NodeId = "N:{}".format(self.get_node_id(node))
        now = datetime.utcnow()
        later = now + timedelta(minutes=minutes)

        self.invoke("Orion.Nodes",
                    "Unmanage",
                    NodeId,
                    now,
                    later,
                    False)

        # The Invoke returns None, so return something.
        return True
dataset/ETHPy150Open StackStorm/st2contrib/packs/orion/actions/node_unmanage.py/NodeUnmanage.run/swapped operands of `>`