Split the name_servers in the right place

This commit is contained in:
2019-12-27 12:14:34 -05:00
parent 33e5dcd5e8
commit bc22c008dd
2 changed files with 8 additions and 2 deletions

View File

@ -1644,7 +1644,7 @@ class API_Network_Element(Resource):
reqargs.get('description', None),
reqargs.get('nettype', None),
reqargs.get('domain', None),
reqargs.get('name_servers', None).split(','),
reqargs.get('name_servers', None),
reqargs.get('ip4_network', None),
reqargs.get('ip4_gateway', None),
reqargs.get('ip6_network', None),
@ -1735,7 +1735,7 @@ class API_Network_Element(Resource):
return api_helper.net_modify(
reqargs.get('description', None),
reqargs.get('domain', None),
reqargs.get('name_servers', None).split(','),
reqargs.get('name_servers', None),
reqargs.get('ip4_network', None),
reqargs.get('ip4_gateway', None),
reqargs.get('ip6_network', None),