|
@@ -388,7 +388,8 @@ async def release_board(board_id, user: str = Depends(lookup_user), |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
env = os.environ.copy() |
|
|
env = os.environ.copy() |
|
|
env.update({ k: v for k, v in brd.attrs.items() if k in { 'iface', 'ip', 'devfsrule' } }) |
|
|
|
|
|
|
|
|
addkeys = { 'iface', 'ip', 'devfsrule' } |
|
|
|
|
|
env.update((k, brd.attrs[k]) for k in addkeys if k in brd.attrs) |
|
|
|
|
|
|
|
|
sub = await asyncio.create_subprocess_exec( |
|
|
sub = await asyncio.create_subprocess_exec( |
|
|
settings.setup_script, 'release', brd.name, user, env=env, |
|
|
settings.setup_script, 'release', brd.name, user, env=env, |
|
|