Dan Kenigsberg has submitted this change and it was merged.
Change subject: fix can't get ssl opt in vdsm sos plugin ......................................................................
fix can't get ssl opt in vdsm sos plugin
when execute sosreport will get exception as below:
Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 693, in sosreport plug.setup() File "/usr/lib/python2.7/site-packages/sos/plugins/vdsm.py", line 82, in setup sslopt = ['', '-s '][config.getboolean('vars', 'ssl')] NoOptionError: No option 'ssl' in section: 'vars' Running plugins. Please wait ...
* import vdsm.config to plugin for using default value. * because can not import vdsm module when the plugin's name same with it. so add hack function for import vdsm python lib.
Change-Id: Icbbc9a10202f191d0754bfae5c3f876b6c53a560 Signed-off-by: Xu He Jie xuhj@linux.vnet.ibm.com --- M vdsm/sos/vdsm.py.in 1 file changed, 17 insertions(+), 3 deletions(-)
Approvals: Dan Kenigsberg: Verified; Looks good to me, approved
-- To view, visit http://gerrit.ovirt.org/4349 To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: merged Gerrit-Change-Id: Icbbc9a10202f191d0754bfae5c3f876b6c53a560 Gerrit-PatchSet: 7 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Xu He Jie xuhj@linux.vnet.ibm.com Gerrit-Reviewer: Dan Kenigsberg danken@redhat.com Gerrit-Reviewer: Xu He Jie xuhj@linux.vnet.ibm.com