in hpcpack-autoscaler/src/cyclecloud-hpcpack/hpcpackdriver.py [0:0]
def removed_cc_node(self) -> bool:
if self.bound_cc_node:
return False
return self.is_cc_node or (ci_in("CycleCloudNodes", self.nodegroups) and (self.error or not self.template_assigned))