Added missing files due to gitignore
This commit is contained in:
parent
b0994069ad
commit
575edc836d
9 changed files with 208 additions and 422 deletions
|
|
@ -84,6 +84,7 @@ def edit_host_override():
|
|||
description = sanitize.text(request.form.get('description', ''))
|
||||
host = sanitize.hostname(request.form.get('host', ''))
|
||||
ip = sanitize.ip(request.form.get('ip', ''))
|
||||
enabled = request.form.get('enabled') == 'on'
|
||||
|
||||
if not host or not ip:
|
||||
flash('Hostname and IP address are required.', 'error')
|
||||
|
|
@ -98,7 +99,7 @@ def edit_host_override():
|
|||
flash('Entry not found.', 'error')
|
||||
return redirect(VIEW)
|
||||
|
||||
items[idx].update({'description': description, 'host': host, 'ip': ip})
|
||||
items[idx].update({'description': description, 'host': host, 'ip': ip, 'enabled': enabled})
|
||||
save_core(core)
|
||||
|
||||
flash(apply_msg(), 'success')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue