Skip to content

Commit

Permalink
cephadm: Fix repo_gpgkey should return 2 vars
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ksperis committed Jul 28, 2022
1 parent b76b6ea commit 79c8055
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cephadm/cephadm
Original file line number Diff line number Diff line change
Expand Up @@ -7394,7 +7394,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:
Expand Down

0 comments on commit 79c8055

Please sign in to comment.