git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cee7cc
)
dont forget to return after setting value in prompt_variable
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 17 Jul 2012 16:30:46 +0000
(12:30 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Tue, 17 Jul 2012 16:30:46 +0000
(12:30 -0400)
config/sfa-config-tty
patch
|
blob
|
history
diff --git
a/config/sfa-config-tty
b/config/sfa-config-tty
index
5ec73d8
..
d90a452
100755
(executable)
--- a/
config/sfa-config-tty
+++ b/
config/sfa-config-tty
@@
-258,6
+258,7
@@
def prompt_variable (cdef, cread, cwrite, category, variable,
else:
if cdef.validate_type(variable_type, answer):
cwrite.set(category_id, variable_id, answer)
+ return
else:
print "Not a valid value"
@@
-335,7
+336,7
@@
def mainloop (cdef, cread, cwrite, default_config, site_config, consolidated_con
global service
while True:
try:
- answer = raw_input("Enter command (u for usual changes, w to save, ? for help) ").strip(
" "
)
+ answer = raw_input("Enter command (u for usual changes, w to save, ? for help) ").strip()
except EOFError:
answer =""
except KeyboardInterrupt: