Skip to content

Implement optional substructure from hostname to machine_dir#89

Draft
Ejler wants to merge 1 commit intomasterfrom
bootstrap
Draft

Implement optional substructure from hostname to machine_dir#89
Ejler wants to merge 1 commit intomasterfrom
bootstrap

Conversation

@Ejler
Copy link
Copy Markdown
Member

@Ejler Ejler commented Apr 14, 2026

An attempt at grouping machine directories in subfolders based on the hostname.

So for hostname xxx-yyy-zzz, the directory structure in $HOME/machines could be:

  • xxx-yyy-zzz (unchanged)
  • xxx/yyy-zzz
  • xxx/yyy/zzz
  • yyy/zzz
  • yyy-zzz
  • xxx/yyy

...and combinations like that. I've paid a little attention to the order of priority like respecting a match to the exact hostname first and putting the combinations with two elements later, but otherwise haven't tested extensively. Since a hostname should be unique in a machines environment, issues should only occur if multiple directory trajectories could match the hostname, which should only be the case during development or implementation of this.

There might be some PyExpLabSys functions that try to get the machine folder via hostname - I should check up on that before considering a merge here.

@Ejler Ejler requested a review from robertjensen April 14, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant