fix json for exportedtrees in conflict
Repeating the same json field with multiple values tends to not be supported well by json parsers, so list the trees separated by spaces.
This commit is contained in:
parent
b71d62b1aa
commit
a25fef36ad
1 changed files with 2 additions and 3 deletions
|
@ -188,11 +188,10 @@ adjustExportable r = case M.lookup "exporttree" (config r) of
|
|||
, checkPresentCheap = False
|
||||
, mkUnavailable = return Nothing
|
||||
, getInfo = do
|
||||
ts <- map (\t -> ("exportedtree", fromRef t) )
|
||||
. map exportedTreeish
|
||||
ts <- map (fromRef . exportedTreeish)
|
||||
<$> getExport (uuid r)
|
||||
is <- getInfo r
|
||||
return (is++[("export", "yes")]++ts)
|
||||
return (is++[("export", "yes"), ("exportedtree", unwords ts)])
|
||||
}
|
||||
retrieveKeyFileFromExport getexportlocs exportinconflict k _af dest p = unVerified $
|
||||
if maybe False (isJust . verifyKeyContent) (maybeLookupBackendVariety (keyVariety k))
|
||||
|
|
Loading…
Reference in a new issue