Comment 14 for bug 2031482

Revision history for this message
Igor Gnip (igorgnip) wrote :

    @property
    def is_controller(self):
        return self.node_type in [
            NODE_TYPE.REGION_CONTROLLER,
            NODE_TYPE.REGION_AND_RACK_CONTROLLER,
            NODE_TYPE.RACK_CONTROLLER,
        ]

    def is_commissioning(self):
        return self.status not in (NODE_STATUS.DEPLOYED, NODE_STATUS.DEPLOYING)

are there any obstacles to replace the check with is_controller and test behavior ?