ifquery: don't build the dependency tree when querying for an interface's properties

This commit is contained in:
Ariadne Conill 2020-09-25 08:43:26 -06:00
parent 9c76528fe1
commit 5615c30fd0

View file

@ -290,7 +290,7 @@ ifquery_main(int argc, char *argv[])
return EXIT_FAILURE;
}
if (lif_lifecycle_count_rdepends(&exec_opts, &collection) == -1)
if (match_opts.property == NULL && lif_lifecycle_count_rdepends(&exec_opts, &collection) == -1)
{
fprintf(stderr, "%s: could not validate dependency tree\n", argv0);
return EXIT_FAILURE;