Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
thread-self
/
root
/
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
clcommon
/
lib
/
__pycache__
[ HOME ]
Exec
Submit
cmt_utils.cpython-311.pyc
� ��gh� � �~ � d dl Z d dlZd dlZd dlZd dlZd dlmZmZmZ dde fd�Z ddefd�Zd� Z dd�Zd � Zdefd �ZdS )� N)�DEFAULT_JWT_ES_TOKEN_PATH�PUSHGATEWAY_ADDRESS�DISABLE_CMT_FILEF�returnc � � t t dd�� � 5 }|� � � � � � }ddd� � n# 1 swxY w Y t j t � d�d|id�� � }|� � � |� � � }n=# t j t j j t t t f$ r | r� i cY S w xY w|S ) a3 Check that client is activated. Absence of JWT token means that client can have volume license like GoDaddy In this case we return False. Also we return False in case of some errors: - Errors during request of status from CM - Malformed JWT token - Incorrect answer from CM �r�utf-8��encodingNz/api/cm/get_backend_activationzX-Auth� )�headers�timeout)�openr �read�strip�requests�getr �raise_for_status�json�JSONDecodeError� exceptions�RequestException�OSError�KeyError�IOError)�raise_exception�f�token�req�activation_infos �v/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/lib/cmt_utils.py�client_activation_datar"