░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/lib/python3/dist-packages/uaclient/timer
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: metering.py
""" 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
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 __pycache__/
DIR
—
2026-07-18 06:43
📄 __init__.py
PY
573 B
2026-04-07 18:21
EDIT
📄 metering.py
PY
674 B
2026-04-07 18:21
EDIT
📄 update_messaging.py
PY
6 KB
2026-04-07 18:21
EDIT