Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.80.111
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
uaclient /
jobs /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
546
B
-rw-r--r--
license_check.py
2.35
KB
-rw-r--r--
metering.py
595
B
-rw-r--r--
update_messaging.py
13.23
KB
-rw-r--r--
update_state.py
222
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : metering.py
""" Functions to be used when running metering jobs """ from uaclient import config from uaclient.cli import assert_lock_file from uaclient.contract import UAContractClient @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 cfg.is_attached: return False contract = UAContractClient(cfg) contract.report_machine_activity() return True
Close