-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredhat_status.py
More file actions
executable file
·35 lines (29 loc) · 978 Bytes
/
redhat_status.py
File metadata and controls
executable file
·35 lines (29 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
"""
Red Hat Status Checker - Modular Version
This script provides the modular version of the Red Hat Status
Checker with enterprise-grade monitoring capabilities.
Usage:
./redhat_status.py [options]
This maintains full backward compatibility while providing
the benefits of the new modular architecture.
"""
import sys
import os
from pathlib import Path
# Add the redhat_status directory to Python path
script_dir = Path(__file__).parent
redhat_status_dir = script_dir / "redhat_status"
sys.path.insert(0, str(script_dir))
# Import and run the main application
if __name__ == "__main__":
try:
from redhat_status.main import main
main()
except ImportError as e:
print(f"❌ Error importing modular components: {e}")
print("Make sure all modular components are properly installed.")
sys.exit(1)
except Exception as e:
print(f"❌ Error running application: {e}")
sys.exit(1)