Skip to content

Commit

Permalink
ns-api(objects): use new library function to list domains
Browse files Browse the repository at this point in the history
Signed-off-by: Tommaso Bailetti <tommaso.bailetti@nethesis.it>
  • Loading branch information
Tbaile committed Jul 30, 2024
1 parent 896bce6 commit 6677471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ns-api/files/ns.objects
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ elif cmd == 'call':
e_uci = EUci()
try:
if action == 'list-domain-sets':
print(json.dumps({'values': objects.list_domain_sets(e_uci)}))
print(json.dumps({'values': objects.list_objects(e_uci, include_host_sets=False, expand=True)}))
elif action == 'list-hosts':
print(json.dumps({'values': objects.list_objects(e_uci, include_domain_sets=False, expand=True)}))
else:
Expand Down

0 comments on commit 6677471

Please sign in to comment.