BLUE
PHP 7.4.33
Path:
//usr/lib/python3/dist-packages/sos
Run
Logout
Edit File
Size: 2.28 KB
Close
//usr/lib/python3/dist-packages/sos/missing.py
Text
Base64
import sys from sos.component import SoSComponent class MissingCollect(SoSComponent): """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. """ load_policy = False configure_logging = False desc = '(unavailable) Collect an sos report from multiple nodes' missing_msg = ( 'It appears likely that your distribution separately ships a package ' 'called sos-collector. Please install it to enable this function' ) def execute(self): sys.stderr.write( "The collect command is unavailable as it appears to be packaged " "separately for your distribution.\n\nPlease install the latest " "sos-collector package to enable this functionality.\n" ) def load_options(self): """Override 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. """ return [] @classmethod def add_parser_options(cls, parser): """Set the --help output for collect to a message that shows that the functionality is unavailable """ msg = "%s %s" % ( 'WARNING: `collect` is not available with this installation!', cls.missing_msg ) parser.epilog = msg return parser class MissingPexpect(MissingCollect): """This is used as a placeholder for when the collect component is locally installed, but cannot be used due to a missing pexpect dependency. """ missing_msg = ( 'Please install the python3-pexpect package for your distribution in ' 'order to enable this function' ) def execute(self): sys.stderr.write( "The collect command is unavailable due to a missing dependency " "on python3-pexpect.\n\nPlease install python3-pexpect to enable " "this functionality.\n" ) # vim: set et ts=4 sw=4 :
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 7 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
cleaner
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
collector
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
help
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
policies
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
presets
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
report
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__pycache__
DIR
-
drwxr-xr-x
2024-03-05 04:28:24
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
archive.py
27.21 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
component.py
17.64 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
missing.py
2.28 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
options.py
13.29 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utilities.py
18.12 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
8.23 KB
lrw-r--r--
2023-07-20 21:38:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).