)]}'
{"ironic/conf/__init__.py":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"ca256dc443bdf9f7dbc221815998bbae059561f4","unresolved":false,"context_lines":[{"line_number":27,"context_line":"cisco_ucs.register_opts(CONF)"},{"line_number":28,"context_line":"conductor.register_opts(CONF)"},{"line_number":29,"context_line":"console.register_opts(CONF)"},{"line_number":30,"context_line":"database.register_opts(CONF)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7aa08908_67b7973a","line":30,"updated":"2016-06-13 17:38:40.000000000","message":"I think I didn\u0027t explain myself clearly before. In this file, you call $module.register_opts(CONF) for every $module in ironic.conf.*. All of those register_opts methods are essentially the same, so you\u0027re duplicating the definition once for every module in this directory. What do you gain from duplicating that code?","commit_id":"750d937ede22993a5e5bf3c9fe831e8faea08c5a"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"af07e1ecc886a2a22ab03f5e6520b53a98fecd5a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"cisco_ucs.register_opts(CONF)"},{"line_number":28,"context_line":"conductor.register_opts(CONF)"},{"line_number":29,"context_line":"console.register_opts(CONF)"},{"line_number":30,"context_line":"database.register_opts(CONF)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7aa08908_aa976d8e","line":30,"in_reply_to":"7aa08908_67b7973a","updated":"2016-06-14 00:27:25.000000000","message":"Hi Miles, thanks very much for the comment. I agree with what you are saying. This can simply be done this way:\n\n\u003e for example:\n\nCONF.register_opts(virtualbox.opts, group\u003d\u0027virtualbox\u0027)\n\n\u003e instead of\n\nvirtualbox.register_opts(CONF)\n\nWould you agree? Thanks!","commit_id":"750d937ede22993a5e5bf3c9fe831e8faea08c5a"},{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"5723f9d2feb8d41e2c943f97bc43211e05df2615","unresolved":false,"context_lines":[{"line_number":27,"context_line":"cisco_ucs.register_opts(CONF)"},{"line_number":28,"context_line":"conductor.register_opts(CONF)"},{"line_number":29,"context_line":"console.register_opts(CONF)"},{"line_number":30,"context_line":"database.register_opts(CONF)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7aa08908_07c82154","line":30,"in_reply_to":"7aa08908_aa976d8e","updated":"2016-06-14 11:36:13.000000000","message":"Yes, exactly :-) And I like your use of `virtualbox.opts` there, instead of `virtualbox.virtualbox_opts` - I think it would be good to use a consistent name for the dictionary of options exported by every ironic.conf.* module.","commit_id":"750d937ede22993a5e5bf3c9fe831e8faea08c5a"}],"ironic/conf/database.py":[{"author":{"_account_id":18893,"name":"Miles Gould","email":"mgould@redhat.com","username":"pozorvlak"},"change_message_id":"7999d8ae7881ca821770851c13b4558efbcb2b41","unresolved":false,"context_lines":[{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def register_opts(conf):"},{"line_number":28,"context_line":"    conf.register_opts(sql_opts, \u0027database\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7aa08908_28131e0f","line":27,"updated":"2016-06-09 17:54:39.000000000","message":"Is it really worth duplicating this one-liner in every module? It doesn\u0027t provide useful information-hiding, since you load the opts list directly in conf/opts.py anyway.","commit_id":"750d937ede22993a5e5bf3c9fe831e8faea08c5a"},{"author":{"_account_id":19686,"name":"Ramamani Yeleswarapu","email":"ramamani.yeleswarapu@intel.com","username":"Rama_Y"},"change_message_id":"f1e3e245eccfde1ac2f4fdaaedfaa64b0a9941fc","unresolved":false,"context_lines":[{"line_number":24,"context_line":"]"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def register_opts(conf):"},{"line_number":28,"context_line":"    conf.register_opts(sql_opts, \u0027database\u0027)"}],"source_content_type":"text/x-python","patch_set":5,"id":"7aa08908_cfc6a415","line":27,"in_reply_to":"7aa08908_28131e0f","updated":"2016-06-10 17:30:32.000000000","message":"Hi Miles, this is done similar to nova spec. opts.py is mainly the single point entry for generating the ironic.conf.sample whereas register_opts() is to make config options available with a single import statement wherever they are needed. Thanks!","commit_id":"750d937ede22993a5e5bf3c9fe831e8faea08c5a"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a92c9143c9cf381a1e728c7efdc3d4a0237deb0c","unresolved":false,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"from ironic.common.i18n import _"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"sql_opts \u003d ["},{"line_number":21,"context_line":"    cfg.StrOpt(\u0027mysql_engine\u0027,"},{"line_number":22,"context_line":"               default\u003d\u0027InnoDB\u0027,"},{"line_number":23,"context_line":"               help\u003d_(\u0027MySQL engine to use.\u0027))"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_395def15","line":20,"updated":"2016-06-16 18:57:21.000000000","message":"Unless there\u0027s a good reason for calling this \u0027sql_opts\u0027, could we be consistent and call it \u0027opts\u0027, like in previous patches.","commit_id":"7751125025d4f5eef374c5d9ae108a53edd93c32"},{"author":{"_account_id":6618,"name":"Ruby Loo","email":"opensrloo@gmail.com","username":"rloo"},"change_message_id":"a92c9143c9cf381a1e728c7efdc3d4a0237deb0c","unresolved":false,"context_lines":[{"line_number":25,"context_line":""},{"line_number":26,"context_line":""},{"line_number":27,"context_line":"def register_opts(conf):"},{"line_number":28,"context_line":"    conf.register_opts(sql_opts, \u0027database\u0027)"}],"source_content_type":"text/x-python","patch_set":6,"id":"7aa08908_999a23c4","line":28,"updated":"2016-06-16 18:57:21.000000000","message":"please do\n    group \u003d \u0027database\u0027","commit_id":"7751125025d4f5eef374c5d9ae108a53edd93c32"}]}
