Skip to content

Commit

Permalink
add spaceseelction support
Browse files Browse the repository at this point in the history
  • Loading branch information
holgerBerger committed Dec 17, 2021
1 parent 38e1772 commit 3e0c490
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sbin/ws_validate_config
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ for ws in workspaces:
except KeyError:
print(' ERROR: no workspace locations defined, please add <"spaces": list> clause to workspace',ws)
sys.exit(1)
try:
print(' spaceselection :',config["workspaces"][ws]["spaceselection"])
if config["workspaces"][ws]["spaceselection"] not in ["random","uid","gid"]:
print(" WARNING: unkown spaceselection, default `random` will be used")
except:
pass
for sp in config["workspaces"][ws]["spaces"]:
if not config["workspaces"][ws]["deleted"]:
print(' ERROR: no target for deletion defined in workspace', ws)
Expand Down

0 comments on commit 3e0c490

Please sign in to comment.