Fix incorrect method on incoming list

This commit is contained in:
Joshua Boniface 2020-12-04 03:21:45 -05:00
parent c208898b34
commit e8c6df49e6
1 changed files with 3 additions and 3 deletions

View File

@ -1974,7 +1974,7 @@ class API_Network_Root(Resource):
id: Message
"""
if reqargs.get('name_servers', None):
name_servers = reqargs.get('name_servers', None).split(',')
name_servers = ','.join(reqargs.get('name_servers', None))
else:
name_servers = ''
return api_helper.net_add(
@ -2101,7 +2101,7 @@ class API_Network_Element(Resource):
id: Message
"""
if reqargs.get('name_servers', None):
name_servers = reqargs.get('name_servers', None).split(',')
name_servers = ','.join(reqargs.get('name_servers', None))
else:
name_servers = ''
return api_helper.net_add(
@ -2198,7 +2198,7 @@ class API_Network_Element(Resource):
id: Message
"""
if reqargs.get('name_servers', None):
name_servers = reqargs.get('name_servers', None).split(',')
name_servers = ','.join(reqargs.get('name_servers', None))
else:
name_servers = ''
return api_helper.net_modify(