We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dd4a481 + 16708e3 commit 3a97289Copy full SHA for 3a97289
gui/modules/api/carriergroups/functions.py
@@ -388,7 +388,7 @@ def addUpdateCarriers(data=None):
388
hostname = form['hostname'] if len(form['hostname']) > 0 else ''
389
strip = form['strip'] if len(form['strip']) > 0 else '0'
390
prefix = form['prefix'] if len(form['prefix']) > 0 else ''
391
- rweight = form['rweight'] if len(form['rweight']) > 0 else 0
+ rweight = form['rweight'] if 'rweight' in form else 1
392
393
if len(hostname) == 0:
394
raise http_exceptions.BadRequest("Carrier hostname/address is required")
0 commit comments