Unverified Commit 1bc23f4f authored by SparkSnail's avatar SparkSnail Committed by GitHub
Browse files

fix remote bug (#523)

Remote TrainingService, passwd is not required when users set sshKeyPath.
parent 36dbc0fe
...@@ -28,7 +28,7 @@ export namespace ValidationSchemas { ...@@ -28,7 +28,7 @@ export namespace ValidationSchemas {
username: joi.string().required(), username: joi.string().required(),
ip: joi.string().ip().required(), ip: joi.string().ip().required(),
port: joi.number().min(1).max(65535).required(), port: joi.number().min(1).max(65535).required(),
passwd: joi.string().required(), passwd: joi.string(),
sshKeyPath: joi.string(), sshKeyPath: joi.string(),
passphrase: joi.string() passphrase: joi.string()
})), })),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment