Skip to content

Commit 1748e2c

Browse files
authored
Missing case for visitor definition (#622)
1 parent a1985e4 commit 1748e2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

manager/manager_cmds/analyze.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ def analyze(parser, args):
211211
if args.trim_specs:
212212
omissions = spack.cmd.parse_specs(args.trim_specs)
213213
visitor = OmitSpecsVisitor(omissions)
214-
if args.require_attribute:
214+
elif args.require_attribute:
215215
visitor = RequirePackageAttributeVisitor(args.require_attribute)
216+
else:
217+
visitor = OmitSpecsVisitor([])
218+
216219

217220
stats = compute_dag_stats(specs, visitor)
218221

0 commit comments

Comments
 (0)