bitbake: bitbake-hashserver: Allow anonymous permissions to be space separated

Space separation is more natural when setting the value from an
environment variable, so allow that here for convenience.

(Bitbake rev: 07eb9176f8a7449c1d2cbfff072fa0873e97a336)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Joshua Watt
2023-11-03 08:26:37 -06:00
committed by Richard Purdie
parent a607f435de
commit 407afec92a

View File

@@ -127,7 +127,10 @@ websocket, as in "wss://SERVER:PORT"
logger.addHandler(console)
read_only = (os.environ.get("HASHSERVER_READ_ONLY", "0") == "1") or args.read_only
anon_perms = args.anon_perms.split(",")
if "," in args.anon_perms:
anon_perms = args.anon_perms.split(",")
else:
anon_perms = args.anon_perms.split()
server = hashserv.create_server(
args.bind,