Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
17dfc522
Commit
17dfc522
authored
Mar 19, 2008
by
Manuel Franceschini
Browse files
Add SS_FILE_STORAGE_DIR to ssconf
Author: manuel.franceschini Reviewed-by: iustinp
parent
1abbbbe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/ssconf.py
View file @
17dfc522
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment