Allow mkdir-with-children to accept private-key

This commit is contained in:
Christopher R. Wood 2024-05-07 14:37:42 -04:00
parent b93a39fdc2
commit 6c7ffbe30d

View File

@ -178,7 +178,7 @@ def POSTUnlinkedCreateDirectoryWithChildren(req, client):
req.content.seek(0) req.content.seek(0)
kids_json = req.content.read() kids_json = req.content.read()
kids = convert_children_json(client.nodemaker, kids_json) kids = convert_children_json(client.nodemaker, kids_json)
d = client.create_dirnode(initial_children=kids) d = client.create_dirnode(initial_children=kids, unique_keypair=get_keypair(req))
redirect = get_arg(req, "redirect_to_result", "false") redirect = get_arg(req, "redirect_to_result", "false")
if boolean_of_arg(redirect): if boolean_of_arg(redirect):
def _then_redir(res): def _then_redir(res):