1
0
Fork 0

cluster/clustercfg: fix for nix 2.4

Change-Id: I3f9ebd895495a23ec179ccd237389e8f3e531768
Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1284
Reviewed-by: q3k <q3k@hackerspace.pl>
master
q3k 2022-04-04 17:49:54 +00:00 committed by q3k
parent 2ada80423a
commit d584e76ea3
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ logger.addHandler(sh)
def pki_config(key, fqdn):
machine_name = fqdn.split('.')[0]
raw = subprocess.check_output([
'nix', 'eval', '--raw',
'nix', 'eval', '--raw', '--impure', '--expr',
'( ((import ' + local_root + '/cluster/nix/defs-cluster-k0.nix ) "' + machine_name + '").pki.' + key + '.json )',
])
return json.loads(raw)