Skip to content
Snippets Groups Projects
Commit 17dfc522 authored by Manuel Franceschini's avatar Manuel Franceschini
Browse files

Add SS_FILE_STORAGE_DIR to ssconf

Author: manuel.franceschini
Reviewed-by: iustinp
parent 1abbbbe2
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,9 @@ class SimpleStore:
SS_MASTER_IP = "master_ip"
SS_MASTER_NETDEV = "master_netdev"
SS_CLUSTER_NAME = "cluster_name"
SS_FILE_STORAGE_DIR = "file_storage_dir"
_VALID_KEYS = (SS_HYPERVISOR, SS_NODED_PASS, SS_MASTER_NODE, SS_MASTER_IP,
SS_MASTER_NETDEV, SS_CLUSTER_NAME)
SS_MASTER_NETDEV, SS_CLUSTER_NAME, SS_FILE_STORAGE_DIR)
_MAX_SIZE = 4096
def __init__(self, cfg_location=None):
......@@ -155,6 +156,12 @@ class SimpleStore:
"""
return self._ReadFile(self.SS_CLUSTER_NAME)
def GetFileStorageDir(self):
"""Get the file storage dir.
"""
return self._ReadFile(self.SS_FILE_STORAGE_DIR)
def SetKey(self, key, value):
"""Set the value of a key.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment