diff options
author | Michael E Brown <mebrown@michaels-house.net> | 2007-10-21 05:17:12 -0500 |
---|---|---|
committer | Michael E Brown <mebrown@michaels-house.net> | 2007-10-21 05:17:12 -0500 |
commit | 45582aa0479f04515cf19803e6f8df16efae7af7 (patch) | |
tree | fde5f679d70b76f4ea67411a8324604222673c99 | |
parent | d74c51f166dad3c38f46639287ccfb60df5e504a (diff) | |
download | mock-45582aa0479f04515cf19803e6f8df16efae7af7.tar.gz mock-45582aa0479f04515cf19803e6f8df16efae7af7.tar.xz mock-45582aa0479f04515cf19803e6f8df16efae7af7.zip |
fix disable/enable plugin cmdline to write to correct config entry.
-rwxr-xr-x | src/mock.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mock.py b/src/mock.py index 44b277f..587ddf9 100755 --- a/src/mock.py +++ b/src/mock.py @@ -161,11 +161,11 @@ def set_config_opts_per_cmdline(config_opts, options): for i in options.disabled_plugins: if i not in config_opts['plugins']: raise mock.exception.BadCmdline("Bad option for '--disable-plugins=%s'. Expecting one of: %s" % (i, config_opts['plugins'])) - config_opts['enable_%s' % i] = False + config_opts['plugin_conf']['enable_%s' % i] = False for i in options.enabled_plugins: if i not in config_opts['plugins']: raise mock.exception.BadCmdline("Bad option for '--enable-plugins=%s'. Expecting one of: %s" % (i, config_opts['plugins'])) - config_opts['enable_%s' % i] = True + config_opts['plugin_conf']['enable_%s' % i] = True if options.cleanup_after and not options.resultdir: raise mock.exception.BadCmdline("Must specify --resultdir when using --cleanup-after") |