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:
commit
044d8307f9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue