From 5b975f93ccffe8098c7b2ded4eee6c6e2e73fdb9 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 26 Aug 2010 13:57:00 +0000 Subject: [PATCH] Allow config setting value to be DEFAULT which will reset value svn: r15819 --- src/cli/argparser.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/argparser.py b/src/cli/argparser.py index 34bf52a97..18ab43461 100644 --- a/src/cli/argparser.py +++ b/src/cli/argparser.py @@ -226,7 +226,10 @@ class ArgParser(object): print "Current config setting '%s': %s" % ( setting_name, setting_value) if set_value: - new_value = safe_eval(new_value) + if new_value == "DEFAULT": + new_value = config.get_default(setting_name) + else: + new_value = safe_eval(new_value) config.set(setting_name, new_value) print " New config setting '%s': %s" % ( setting_name, config.get(setting_name))