projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
713faea
)
Create constants to replace os scripts names
author
Guido Trotter
<ultrotter@google.com>
Fri, 17 Oct 2008 14:35:04 +0000
(14:35 +0000)
committer
Guido Trotter
<ultrotter@google.com>
Fri, 17 Oct 2008 14:35:04 +0000
(14:35 +0000)
Reviewed-by: iustinp
lib/constants.py
patch
|
blob
|
history
diff --git
a/lib/constants.py
b/lib/constants.py
index
296ebde
..
f20117d
100644
(file)
--- a/
lib/constants.py
+++ b/
lib/constants.py
@@
-233,8
+233,14
@@
DEFAULT_VG = "xenvg"
BIND_ADDRESS_GLOBAL = "0.0.0.0"
MIN_VG_SIZE = 20480
-# valid os status
+# os related constants
OS_VALID_STATUS = "VALID"
+OS_SCRIPT_CREATE = 'create'
+OS_SCRIPT_IMPORT = 'import'
+OS_SCRIPT_EXPORT = 'export'
+OS_SCRIPT_RENAME = 'rename'
+OS_SCRIPTS = frozenset([OS_SCRIPT_CREATE, OS_SCRIPT_IMPORT,
+ OS_SCRIPT_EXPORT, OS_SCRIPT_RENAME])
# ssh constants
SSH_INITD_SCRIPT = _autoconf.SSH_INITD_SCRIPT