Looks like logic in ubuntu-security-status bases that message only on
whether livepatch is enabled or not.  this is an invalid test because
containers will not have livepatch enabled and neither will UA attached
VMs with FIPS enabled.


So the following test is not an accurate representation of whether the system 
is attached to a license:


    if lts and not livepatch_enabled:
         print("\nThis machine is not attached to an Ubuntu Advantage "
               "subscription.\nSee https://ubuntu.com/advantage";)


Attached is a patch that would allow ubuntu-security-updates to determine both 
attach status and service enabled/disabled by processing `ua status 
--format=json` or the JSON status cache provided by UA


** Patch added: "ubuntu-security-status-from-ua-status.patch"
   
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1938043/+attachment/5522439/+files/ubuntu-security-status-from-ua-status.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1938043

Title:
  ubuntu-security-status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1938043/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to