Allow config setting value to be DEFAULT which will reset value

svn: r15819
This commit is contained in:
Doug Blank 2010-08-26 13:57:00 +00:00
parent 1d5bcbf423
commit 5b975f93cc

View File

@ -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))