Skip to content

Commit

Permalink
ns-api: remove wildcard on ns.dns delete_record
Browse files Browse the repository at this point in the history
  • Loading branch information
andre8244 committed Oct 13, 2023
1 parent 1d1fb8c commit b3e3c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ns-api/files/ns.dns
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def get_record(args):
def delete_record(args):
u = EUci()
try:
u.get('dhcp', args['record'])
record = u.get_all('dhcp', args['record'])
remove_wildcard(u, record.get("ip", ''), record.get('name', ''))
u.delete('dhcp', args['record'])
u.save('dhcp')
except:
Expand Down

0 comments on commit b3e3c67

Please sign in to comment.