Merge pull request #4424 from DanilaFe/fix-attr-from-json
Fix conversion from JSON to fetch attributes
This commit is contained in:
commit
c51ee5c033
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ Attrs jsonToAttrs(const nlohmann::json & json)
|
|||
else if (i.value().is_string())
|
||||
attrs.emplace(i.key(), i.value().get<std::string>());
|
||||
else if (i.value().is_boolean())
|
||||
attrs.emplace(i.key(), i.value().get<bool>());
|
||||
attrs.emplace(i.key(), Explicit<bool> { i.value().get<bool>() });
|
||||
else
|
||||
throw Error("unsupported input attribute type in lock file");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue