Skip to content

Commit

Permalink
fixed too open cluster_id regex
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Oct 20, 2023
1 parent 83d4a2a commit d54ab93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bibigrid/core/actions/terminate.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def terminate_servers(server_list, cluster_id, provider, log):
"""
log.info("Deleting servers on provider %s...", provider.cloud_specification['identifier'])
cluster_server_state = []
server_regex = re.compile(fr"^bibigrid-(master-{cluster_id}+|(worker|vpngtw)-{cluster_id}+-\d+)$")
server_regex = re.compile(fr"^bibigrid-(master-{cluster_id}|(worker|vpngtw)-{cluster_id}-\d+)$")
for server in server_list:
if server_regex.match(server["name"]):
log.info("Trying to terminate Server %s on cloud %s.", server['name'],
Expand Down

0 comments on commit d54ab93

Please sign in to comment.