Skip to content
Snippets Groups Projects
Commit 16fe3109 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

service tree switching, definitive fix

parent 26aaa5de
No related branches found
No related tags found
No related merge requests found
Pipeline #15724 failed
......@@ -79,9 +79,9 @@ void service_enable_disable(graph_t *g, struct resolve_hash_s *hash, struct reso
if (action) {
if (info->opt_tree)
tree_service_remove(res->sa.s + res->path.home, res->sa.s + res->treename, res->sa.s + res->name) ;
tree_service_add(treename, res->sa.s + res->name, info) ;
service_switch_tree(res, res->sa.s + res->path.home, treename, info) ;
else
tree_service_add(treename, res->sa.s + res->name, info) ;
}
res->enabled = action ;
......@@ -146,9 +146,9 @@ void service_enable_disable(graph_t *g, struct resolve_hash_s *hash, struct reso
if (action) {
if (info->opt_tree)
tree_service_remove(h->res.sa.s + h->res.path.home, h->res.sa.s + h->res.treename, h->res.sa.s + h->res.name) ;
tree_service_add(treename, h->res.sa.s + h->res.name, info) ;
service_switch_tree(&h->res, h->res.sa.s + h->res.path.home, treename, info) ;
else
tree_service_add(treename, h->res.sa.s + h->res.name, info) ;
}
h->res.enabled = action ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment