forked from luopingyi/xc_agent_platform_demo
18 lines
428 B
Python
18 lines
428 B
Python
#!/usr/bin/env python3
|
|
"""Run only the task/page GET; print credential-free summary."""
|
|
import json
|
|
import sys
|
|
from pathlib import Path
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from src.readonly_probe import probe_readonly
|
|
|
|
|
|
def main():
|
|
result = probe_readonly()
|
|
print(json.dumps(result, ensure_ascii=False))
|
|
return 0 if result['auth_ok'] else 1
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|