REDROOM
PHP 8.3.31
Path:
Logout
Edit File
Size: 624 B
Close
/proc/self/root/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/myimunify/advice/hosting_smart_advice_api.py
Text
Base64
import json import logging from defence360agent.utils import CheckRunError, check_run logger = logging.getLogger(__name__) EXECUTABLE = "cl-hosting-smart-advice" APP_NAME = "imunify" async def sync_advices(advices): payload = json.dumps(advices) try: out = await check_run( [EXECUTABLE, "sync", "--app", APP_NAME, "--json", payload] ) except CheckRunError as e: logger.warning( "Failed to sync advices with `cl-hosting-smart-advice`: %s", e ) return False else: result = json.loads(out) return result.get("success", False)
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 4
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
__pycache__
DIR
-
drwxr-xr-x
2026-06-08 20:23:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
advice_manager.py
6.20 KB
lrw-r--r--
2026-05-26 21:20:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dataclass.py
1.74 KB
lrw-r--r--
2026-05-26 21:20:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hosting_smart_advice_api.py
624 B
lrw-r--r--
2026-05-26 21:20:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
__init__.py
0 B
lrw-r--r--
2026-05-26 21:20:44
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).