@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 ?
@property self):
NODE_ TYPE.REGION_ CONTROLLER,
NODE_ TYPE.REGION_ AND_RACK_ CONTROLLER,
NODE_ TYPE.RACK_ CONTROLLER,
def is_controller(
return self.node_type in [
]
def is_commissionin g(self) : DEPLOYED, NODE_STATUS. DEPLOYING)
return self.status not in (NODE_STATUS.
are there any obstacles to replace the check with is_controller and test behavior ?