PK
œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Notice: ob_end_clean(): Failed to delete buffer. No buffer to delete in /home/telusvwg/public_html/da754d/index.php on line 8
| Dir : /proc/thread-self/root/opt/imunify360/venv/lib64/python3.11/site-packages/clcommon/lib/ |
| Server: Linux premium279.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 IP: 66.29.132.192 |
| Dir : //proc/thread-self/root/opt/imunify360/venv/lib64/python3.11/site-packages/clcommon/lib/config.py |
# coding=utf-8
#
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2020 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENCE.TXT
#
import yaml
import os
class Config:
CONFIG_PATH = '/etc/sysconfig/endservertools.yml'
def __init__(self, config=CONFIG_PATH):
self._config_path = config
def _load(self):
if not os.path.exists(self._config_path):
return None
try:
with open(self._config_path, encoding='utf-8') as f:
data = yaml.load(f, yaml.SafeLoader)
except yaml.YAMLError:
return None
return data
def get_value(self, parameter, default=None):
data = self._load()
if data is None:
return default
return data.get(parameter, default)