Folsom continued.

1. Update how status is returned/structured/shown
2. Cleanup documentation.
This commit is contained in:
Joshua Harlow
2012-08-17 14:44:07 -07:00
parent 6c019b0f0b
commit 5fbbd572af
29 changed files with 251 additions and 619 deletions

8
smithy
View File

@@ -230,7 +230,10 @@ def run(args):
if config.opts_cache:
LOG.info("After action %s your settings which were applied are:", colorizer.quote(action))
table = OrderedDict()
for section in sorted(list((config.opts_read + config.opts_set).keys())):
all_read_set = {}
all_read_set.update(config.opts_read)
all_read_set.update(config.opts_set)
for section in sorted(list(all_read_set.keys())):
options = set()
if section in config.opts_read:
options.update(list(config.opts_read[section]))
@@ -238,8 +241,7 @@ def run(args):
options.update(list(config.opts_set[section]))
option_values = {}
for option in options:
cache_key = cfg.make_id(section, option)
option_values[cache_key] = config.opts_cache[cache_key]
option_values[option] = config.opts_cache[cfg.make_id(section, option)]
table[section] = option_values
utils.log_object(table, item_max_len=80)