Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jan 10, 2025
1 parent 6e43e44 commit 1fd8b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slurm_autoscale_tfe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def main(command, set_op, hostlist):
hosts = frozenset(expand_hostlist(hostlist))
tfe_client = connect_tfe_client()
var_id, tfe_pool = get_pool_from_tfe(tfe_client)
tfe_instances, address_prefix = get_instances_from_tfe(tfe_client)

next_pool = set_op(tfe_pool, hosts)
if tfe_pool != next_pool:
Expand All @@ -186,6 +185,7 @@ def main(command, set_op, hostlist):
hostlist,
)

tfe_instances, address_prefix = get_instances_from_tfe(tfe_client)
next_instances = set_op(tfe_instances, hosts)
if tfe_instances != next_instances:
try:
Expand Down

0 comments on commit 1fd8b66

Please sign in to comment.