
    ~ g                     D    S SK r S SKJr   " S S\5      r " S S\5      rg)    N)SoSComponentc                   D    \ rS rSrSrSrSrSrSrS r	S r
\S 5       rS	rg
)MissingCollect   a7  This is used as a placeholder for when the local sos installation
attempts to import sos.collector, but that module is not present. In those
scenarios, it means that sos has been split into sub-packages. Barring
incorrect splitting, this 'sos.missing' module should always be available
to the main sos package.
Fz7(unavailable) Collect an sos report from multiple nodeszIt appears likely that your distribution separately ships a package called sos collect. Please install it to enable this functionc                 B    [         R                  R                  S5        g )NzThe collect command is unavailable as it appears to be packaged separately for your distribution.

Please install the latest sos collect package to enable this functionality.
sysstderrwriteselfs    -/usr/lib/python3/dist-packages/sos/missing.pyexecuteMissingCollect.execute   s    

B	
    c                     / $ )zOverride the normal component method to basically ignore all options
given, so that we always print the error message that collect is
unavailable, rather than failing on the parser when collect is called
with options.
 r   s    r   load_optionsMissingCollect.load_options   s	     	r   c                 0    SU R                    3nX!l        U$ )z`Set the --help output for collect to a message that shows that
the functionality is unavailable
z<WARNING: `collect` is not available with this installation! )missing_msgepilog)clsparsermsgs      r   add_parser_options!MissingCollect.add_parser_options%   s#    
 N//"$r   r   N)__name__
__module____qualname____firstlineno____doc__load_policyconfigure_loggingdescr   r   r   classmethodr   __static_attributes__r   r   r   r   r      sB     KDD	H 

  r   r   c                   "    \ rS rSrSrSrS rSrg)MissingPexpect0   zThis is used as a placeholder for when the collect component is locally
installed, but cannot be used due to a missing pexpect dependency.
zaPlease install the python3-pexpect package for your distribution in order to enable this functionc                 B    [         R                  R                  S5        g )NzThe collect command is unavailable due to a missing dependency on python3-pexpect.

Please install python3-pexpect to enable this functionality.
r   r   s    r   r   MissingPexpect.execute:   s    

$	
r   r   N)r   r   r    r!   r"   r   r   r'   r   r   r   r)   r)   0   s    
	( 

r   r)   )r	   sos.componentr   r   r)   r   r   r   <module>r.      s$    
 &'\ 'T
^ 
r   