Add Active member to Nodes and Values (#319)

This commit is contained in:
pyqlsa
2022-07-19 22:43:15 -07:00
committed by GitHub
parent f9bc630ef8
commit a05a0c20ba
4 changed files with 65 additions and 2 deletions
+2 -2
View File
@@ -613,7 +613,7 @@ func existingFileMapper(r *Registry) MapperFunc {
return err
}
if ctx.Value.Set {
if !ctx.Value.Active || ctx.Value.Set {
// early return to avoid checking extra files that may not exist;
// this hack only works because the value provided on the cli is
// checked before the default value is checked (if default is set).
@@ -649,7 +649,7 @@ func existingDirMapper(r *Registry) MapperFunc {
return err
}
if ctx.Value.Set {
if !ctx.Value.Active || ctx.Value.Set {
// early return to avoid checking extra dirs that may not exist;
// this hack only works because the value provided on the cli is
// checked before the default value is checked (if default is set).