Merge pull request #86 from ifupdown-ng/feature/ifquery-skip-depgraph-for-iface-queries

ifquery: don't build the dependency tree when querying for an interface's properties
This commit is contained in:
Maximilian Wilhelm 2020-09-25 20:59:54 +02:00 committed by GitHub
commit 044d8307f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -290,7 +290,7 @@ ifquery_main(int argc, char *argv[])
return EXIT_FAILURE; 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); fprintf(stderr, "%s: could not validate dependency tree\n", argv0);
return EXIT_FAILURE; return EXIT_FAILURE;