-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck_domain.py
More file actions
31 lines (25 loc) · 925 Bytes
/
Copy pathcheck_domain.py
File metadata and controls
31 lines (25 loc) · 925 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
#!/usr/bin/env python3
"""
Domain check script to verify that airline_enhanced domain is registered.
"""
import sys
def check_domain_registration():
"""Check if airline_enhanced domain is available in tau2 registry"""
try:
# Import tau2_enhanced first to ensure domain registration
import tau2_enhanced
from tau2.registry import registry
domains = registry.get_domains()
print(f"Available domains: {domains}")
if 'airline_enhanced' in domains:
print("✅ airline_enhanced domain is successfully registered!")
return True
else:
print("❌ airline_enhanced domain is NOT registered")
return False
except Exception as e:
print(f"❌ Error checking domain registration: {e}")
return False
if __name__ == "__main__":
success = check_domain_registration()
sys.exit(0 if success else 1)