~ubuntu-cdimage/ubuntu-cdimage/focal

Viewing all changes in revision 1874.

  • Committer: Iain Lane
  • Date: 2020-06-22 11:17:21 UTC
  • Revision ID: iain.lane@canonical.com-20200622111721-obln23vxqsprgmoo
launchpad: Create a KeyringCredentialStore to continue working under sudo

After LP: #1862948 (focal or later), Launchpadlib always uses a memory-backed
(i.e.  non-persistent) keyring backend when run under sudo. This defeats most
uses of cdimage on our shared host.

The way to fix this is to explicitly create a credential store, and then
launchpadlib will use this backend rather than selecting a memory one.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: