Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
uaclient /
timer /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-07-29 12:52
__init__.py
573
B
-rw-r--r--
2026-04-07 18:21
metering.py
674
B
-rw-r--r--
2026-04-07 18:21
update_messaging.py
5.97
KB
-rw-r--r--
2026-04-07 18:21
Save
Rename
""" Functions to be used when running metering jobs """ from uaclient import config from uaclient.api.u.pro.status.is_attached.v1 import _is_attached from uaclient.cli import cli_util from uaclient.contract import UAContractClient @cli_util.assert_lock_file("timer metering job") def metering_enabled_resources(cfg: config.UAConfig) -> bool: # We only run this job if there is no other job running. # The reason for that is to avoid potential conflicts with # auto-attach, attach and enable operations. if not _is_attached(cfg).is_attached: return False contract = UAContractClient(cfg) contract.update_activity_token() return True