Skip to content

Commit

Permalink
Fix node_is_fr to handle empty string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
abbas1902 committed Dec 9, 2024
1 parent a897961 commit 3ce09c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ def node_is_tpu(self, node_name=None):
return self.cfg.nodeset_tpu.get(nodeset_name) is not None

def node_is_fr(self, node_name:str) -> bool:
return self.node_nodeset(node_name).future_reservation is not None
return self.node_nodeset(node_name).future_reservation != ""

def is_dormant_fr_node(self, node_name:str) -> bool:
fr = self.future_reservation(self.node_nodeset(node_name))
Expand Down

0 comments on commit 3ce09c3

Please sign in to comment.