summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-10-26 19:16:14 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-10-26 19:16:14 +0200
commitb87f4be0bd0c3d715d042d8fba654f5ec0314833 (patch)
tree3603531b89375dae646f4f4d6fdb289e237495f9
parent2d46fcf95548ec3ef69ace0cc70aa98b387e28a5 (diff)
Minor changes
-rw-r--r--clusterman/config.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/clusterman/config.py b/clusterman/config.py
index 94294be..58dbdbc 100644
--- a/clusterman/config.py
+++ b/clusterman/config.py
@@ -15,19 +15,27 @@ class Config:
"ip4_ignore": ["10.0.0.5", "10.0.0.1"],
},
"plugins": { "ls": "ls -al" },
- "timeout": 0.5
+ "timeout": 0.5,
+ "ssh_key_path": ""
}
SCHEMA_CONFIG = {
"type": "object",
"properties": {
"timeout": {"type": "number"},
"plugins": {"type": "object"},
+ "ssh_key_path": {"type": "string"},
"cluster": {"type": "object", "properties":{
"ip4_from": {"type": "string"},
"ip4_to": {"type": "string"},
"ip4_ignore": {"type": "array", "items":{"type": "string"}}
}}
- }
+ },
+ "required":[
+ "timeout",
+ "plugins",
+ "ssh_key_path",
+ "cluster"
+ ]
}
def __init__(self):