a >h@s*ddlmZmZmZGdddeeZdS))PluginIndependentPlugin PluginOptc@s@eZdZdZdZdZdZdZedddd gZ d d Z d d Z dS) SEDUtilityz Collects information about SED drives installed on host system. This plugin will capture data using sedutil utility zSelf Encrypting Drivessedutil)ZsecuritysystemZstorageZhardware)rdebugFzcapture debug data)defaultZdesccCsxg}|d}|drtd|dkrj|dD]8}|dr0|}|dd\}}d|kr0||q0||dS) Nzsedutil-cli --scanrrstatusoutputz/dev/2)Zcollect_cmd_outputZ get_option splitlines startswithsplitappenddo_debug)selfsed_listresultlineZdiskZ tcg_opal_devr>/usr/lib/python3.9/site-packages/sos/report/plugins/sedutil.pysetups     zSEDUtility.setupcCs|D]}|d|qdS)z Collect debug logs zsedutil-cli --query N)Zadd_cmd_output)rrZdevicerrrr,szSEDUtility.do_debugN) __name__ __module__ __qualname____doc__Z short_descZ plugin_nameZprofilesZpackagesrZ option_listrrrrrrr s rN)Zsos.report.pluginsrrrrrrrr s