src/api2/types.rs: define PROXMOX_AUTH_REALM_SCHEMA and PROXMOX_USER_ID_SCHEMA

And try to use nbew schemas with config api...
This commit is contained in:
Dietmar Maurer
2020-01-13 14:17:22 +01:00
parent b25f313d66
commit 163dc16c0b
3 changed files with 34 additions and 8 deletions

View File

@ -42,10 +42,10 @@ pub fn list_remotes(
schema: SINGLE_LINE_COMMENT_SCHEMA,
},
host: {
schema: remotes::REMOTE_HOST_SCHEMA,
schema: DNS_NAME_OR_IP_SCHEMA,
},
userid: {
schema: remotes::REMOTE_USERID_SCHEMA,
schema: PROXMOX_USER_ID_SCHEMA,
},
password: {
schema: remotes::REMOTE_PASSWORD_SCHEMA,