From a65e22fc31d123f3fc195139bfc79d4edd488400 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 27 Oct 2023 13:23:06 +0200 Subject: Minor changes --- clusterman/config.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'clusterman/config.py') diff --git a/clusterman/config.py b/clusterman/config.py index b70dc16..9a5c52d 100644 --- a/clusterman/config.py +++ b/clusterman/config.py @@ -19,14 +19,20 @@ class Config: }, "plugins": { "ls": "ls -al" }, "timeout": 0.5, - "ssh_key_path": "" + "ssh": { + "key_path": "", + "user": "root" + } } SCHEMA_CONFIG = { "type": "object", "properties": { "timeout": {"type": "number"}, "plugins": {"type": "object"}, - "ssh_key_path": {"type": "string"}, + "ssh": {"type": "object", "properties":{ + "key_path": {"type": "string"}, + "user": {"type": "string"} + }}, "cluster": {"type": "object", "properties":{ "ip4_from": {"type": "string"}, "ip4_to": {"type": "string"}, @@ -37,8 +43,8 @@ class Config: "required":[ "timeout", "plugins", - "ssh_key_path", - "cluster" + "cluster", + "ssh" ] } -- cgit v1.2.3