X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=blobdiff_plain;f=config%2Fsfa-config-tty;h=d90a4521eb7f4605b4f8d553fcc4fe4c7269406f;hp=5ec73d886d7672526660007835ad7f1677b651db;hb=00fdc14dca78029a0f0e5bd82bddaf69261c6948;hpb=4cee7cc458f976344db58de1c572a18a9d30cf40 diff --git a/config/sfa-config-tty b/config/sfa-config-tty index 5ec73d88..d90a4521 100755 --- 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: