David Caro has uploaded a new change for review. Change subject: Adding possibility to specify multilevel options ......................................................................
Adding possibility to specify multilevel options For example environment vars with: --option environment.MYVAR=MYVALUE Change-Id: I660286c5fe592f8cda75b7880a16e0e4fc6f2003 Signed-off-by: David Caro <[email protected]> --- M mock_configs/mock_genconfig 1 file changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/jenkins refs/changes/60/33160/1 diff --git a/mock_configs/mock_genconfig b/mock_configs/mock_genconfig index 9d2068a..b175748 100755 --- a/mock_configs/mock_genconfig +++ b/mock_configs/mock_genconfig @@ -45,9 +45,15 @@ def dumps_dict(to_dump, dict_name): result_lines = [] + keys_str = '' for key, value in to_dump.iteritems(): - result_lines.append("%s[%s]=%s" % (dict_name, - json.dumps(key), + if key != 'yum.conf': + keys = key.split('.') + else: + keys = [key] + key = '"]["'.join(keys) + result_lines.append('%s["%s"]=%s' % (dict_name, + key, json.dumps(value))) return '\n'.join(result_lines) -- To view, visit http://gerrit.ovirt.org/33160 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I660286c5fe592f8cda75b7880a16e0e4fc6f2003 Gerrit-PatchSet: 1 Gerrit-Project: jenkins Gerrit-Branch: master Gerrit-Owner: David Caro <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
