Skip to content

Commit d2130a2

Browse files
committed
Fix error when updating hosts
1 parent 64de096 commit d2130a2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@ I won't go in to too much detail here but here are the basics for someone new to
101101
## TODO
102102

103103
- Pass on human readable ssl cert errors to the ui
104-
- Allow a host to be a redirection to another ___domain
105104
- UI: Allow column sorting on tables
106105
- UI: Allow filtering hosts by types
107106
- Advanced option to overwrite the default ___location block (or regex to do it automatically)
108107
- Add nice upstream error pages
109-

manager/src/backend/lib/validator/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function apiValidator (schema, payload/*, description*/) {
3030
resolve(payload);
3131
} else {
3232
let message = ajv.errorsText(validate.errors);
33-
//debug(validate.errors);
33+
//console.log(validate.errors);
3434

3535
let err = new error.ValidationError(message);
3636
err.debug = [validate.errors, payload];

manager/src/backend/schema/endpoints/hosts.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,9 @@
146146
"required": [],
147147
"additionalProperties": false,
148148
"properties": {
149+
"type": {
150+
"$ref": "#/definitions/type"
151+
},
149152
"hostname": {
150153
"$ref": "#/definitions/hostname"
151154
},

0 commit comments

Comments
 (0)