On Noble, if the pro security-status command runs before the ESM cache is created, we will see the following warning on stderr:
/usr/lib/python3/dist-packages/uaclient/apt.py:299: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/apt.conf.d/ - DirectoryExists (2: No such file or directory)
apt_pkg.init()
/usr/lib/python3/dist-packages/uaclient/apt.py:281: Warning: W:Unable to read /var/lib/ubuntu-advantage/apt-esm/etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
apt_pkg.init_system()
Expected behavior
This warning should not appear, even if the ESM cache doesn't exit
To Reproduce
Please include details on how to reproduce the bug.
Description of the bug
On Noble, if the
pro security-status
command runs before the ESM cache is created, we will see the following warning on stderr:Expected behavior
This warning should not appear, even if the ESM cache doesn't exit
To Reproduce
Please include details on how to reproduce the bug.
pro security-status | cat
System information: