]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: Fix repo_gpgkey should return 2 vars
authorLaurent Barbe <laurent@ksperis.com>
Thu, 28 Jul 2022 07:30:59 +0000 (09:30 +0200)
committerAdam King <adking@redhat.com>
Sun, 31 Jul 2022 18:33:57 +0000 (14:33 -0400)
when option --gpg-url is specified, the name used for the gpg filename is missing and throws an exception
this adds the string "manual" to the gpg key : /etc/apt/trusted.gpg.d/ceph.manual.gpg

Fixes: https://tracker.ceph.com/issues/56950
Signed-off-by: Laurent Barbe <laurent@ksperis.com>
(cherry picked from commit 79c805546c9bf4747a9019f4ad59f55e03c9fcef)

src/cephadm/cephadm

index 746ab8feebca5861e48f967e2fa8cf061dbe65eb..8875d946c8e5ec4ae6c22621726497a80bbf3d75 100755 (executable)
@@ -6584,7 +6584,7 @@ class Packager(object):
 
     def repo_gpgkey(self) -> Tuple[str, str]:
         if self.ctx.gpg_url:
-            return self.ctx.gpg_url
+            return self.ctx.gpg_url, 'manual'
         if self.stable or self.version:
             return 'https://download.ceph.com/keys/release.gpg', 'release'
         else: