Skip to content

Commit

Permalink
server: make pools with just on_demand_tags: and no tags: work
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Mar 13, 2024
1 parent 337b16d commit 4ed3958
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion resallocserver/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ def reload_config():
assert not pool_id in pools
pool = Pool(pool_id)
pool.from_dict(config[pool_id])
if pool.tags and pool.tags_on_demand:
if pool.tags_on_demand:
if pool.tags is None:
pool.tags = []
pool.tags += pool.tags_on_demand
pool.max_prealloc = 0

Expand Down

0 comments on commit 4ed3958

Please sign in to comment.