Merge pull request #110392 from Infinisil/rename-type

lib/modules: Set submodule type for renamed option sets
master
Silvan Mosberger 2021-01-21 22:34:33 +01:00 committed by GitHub
commit 2a8591e088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -895,7 +895,7 @@ rec {
fromOpt = getAttrFromPath from options;
toOf = attrByPath to
(abort "Renaming error: option `${showOption to}' does not exist.");
toType = let opt = attrByPath to {} options; in opt.type or null;
toType = let opt = attrByPath to {} options; in opt.type or (types.submodule {});
in
{
options = setAttrByPath from (mkOption {