mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 00:23:14 +00:00
Replace existing code in src/opencdeserver with code from the "Kontroll OpenCDE API:s server" POC project on https://github.com/marwiss/Kontroll
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
from glob import glob
|
||||
|
||||
|
||||
def get_secrets():
|
||||
secrets = dict()
|
||||
for var in glob('/run/secrets/*'):
|
||||
k = var.split('/')[-1]
|
||||
v = open(var).read().rstrip('\n')
|
||||
secrets[k] = v
|
||||
return secrets
|
||||
Reference in New Issue
Block a user