• File: symptom.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyc
  • Date Modified: 03/28/2024 3:28 PM
  • File size: 6.71 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit

fc@sddlmZddlmZddlmZddlmZddlm	Z	m
Z
mZmZddl
mZddlmZddlZddlZddlZddlZddlZddljZddljjZd	Zejd
Zde	efdYZdS(
i(tdeque(t_(t	Constants(tLaunchHelper(tInteractivePlugint
DisplayOptiontObjectDisplayOptiont
HiddenCommand(tDiagnose(tOpenCaseNsDan Varga <dvarga@redhat.com>s#redhat_support_tool.plugins.symptomtSymptomcBseZdZedZd
Zd
Zd
Zd
Z	dZ
dZdZdZ
dZdZdZd
d	Zd
d
Zd
dZdZRS(tsymptomsDisplay symptom detailscCs
tdS(NsN
Type the number of the section to view or 'e' to return to the previous menu.(R(tself((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytget_intro_text0scCs
tdS(NsOption: (R(R((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytget_prompt_text4scCs|jS(N(t
_submenu_opts(R((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytget_sub_menu_options7scCs|d|_dS(s
        Allow insertion of a package object by launchhelper (when selecting
        from the list generated by list_kerneldebugs.py)
        RN(R(Rtanalyzedict((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt
insert_obj:scCs tjjrtStddS(Ns$No symptoms found, run analyze first(tsymptomstAnalyzerPlugintTruet	Exception(R((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt
validate_argsCscCs#t|_i|_|jdS(N(RRt	_sectionst_display_symptom_options(R((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytpostinitJs	cCsd}x7|jD],}|j|jkr||j|7}qqWy|jddGHWnItk
r}tjtj	|ddl
}|j|jdGHnXdS(NusUTF-8treplacei(Rtdisplay_texttALLRtencodeRtloggertlogtloggingtWARNINGtsystgetdefaultencoding(RtdoctoptteR#((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytnon_interactive_actionOscCs|j|jkrtd}x7|jD],}|j|jkr"||j|7}q"q"Wtj|jddddn,|j|}tj|jdddddS(NusUTF-8Rtcmdsless -R(RRRRtpydoct	pipepagerR(Rtdisplay_optionR%R&((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pytinteractive_actionbs

cCs tt}|jd|dS(Nt(RRtrun(RR,tlh((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt_send_to_shadowmannsc	CsJtt}ytd|j}d}t|dkryitjdddd\}}tj	|d}|j
||j|jd|tj
|Wqtd	GHqXnJd
t|jtjtjt|jtj|f}|jd|Wn;tk
rE}td|}|GHtjtj|nXdS(
NcSs
|tjkS(N(tstringt	printable(tx((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt<lambda>wsi Ntprefixssymptom-tsuffixs-rhsttws--attachment=%ss^Unable to upload output to Red Hat Customer Portal, reverting to displaying output to console.sM%s
The following comment was added by Red Hat Support Tool
Version: %s
%s

%ss-d '%s's	ERROR: %s(RR	tfiltert
stored_objtNonetlenttempfiletmkstemptostfdopentwritetcloseR/tremoveRtstrtrulerRtMAX_RULEt	apihelpert
USER_AGENTRRR R!tERROR(	RR,R0tfiltered_stringtmsgtfdttemppatht
attachmentR'((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt	_opencasers6		


cCsybtdGHd|jjGHd|jjGHd}|dtjdtjf7}|dtjt|jtj	tjf7}|d|jj
7}|jd	tj
}td
d}|jj|||j|<tdd
|jj|jj
}d}|jj|||j|<ttdd|jj|jj
}d}|jj|||j|<Wn,td}|GHtjtj|tSXtS(Ns
Symptom summarys
	s	us
%s%s%s
sEntire symptoms%s%s%s
s%s
s
sShow entire symptomR-sDiagnose symptomR1s*Open a support case with symptom signatureROs$ERROR: problem parsing the solution.(RRtbefore_linetsource_lineRtBOLDtENDRDRERFttoken_stringRR?tlinesepRRtappendRRRR R!R"tFalseR(RR%tdisp_optRK((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyRsL	
	
		N(t__name__t
__module__tplugin_nameRRR;Rt	symptomIDRRR
RRRRRR(R-R1ROR(((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyR
(s"								+(tcollectionsRt(redhat_support_tool.helpers.confighelperRt%redhat_support_tool.helpers.constantsRt(redhat_support_tool.helpers.launchhelperRtredhat_support_tool.pluginsRRRRt$redhat_support_tool.plugins.diagnoseRt%redhat_support_tool.plugins.open_caseR	R!R?R*R2R=tredhat_support_tool.symptomsRt%redhat_support_tool.helpers.apihelperthelpersRGt
__author__t	getLoggerRR
(((sG/usr/lib/python2.7/site-packages/redhat_support_tool/plugins/symptom.pyt<module>s "