From: Alfredo Deza Date: Tue, 1 Apr 2014 18:54:30 +0000 (-0400) Subject: allow to not require a gpg key for repo installs in debian X-Git-Tag: v1.5.0~16^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a249b47b652a7a525897efae862e8e67d7dd396e;p=ceph-deploy.git allow to not require a gpg key for repo installs in debian Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py index 91bb91f..63210a9 100644 --- a/ceph_deploy/hosts/debian/install.py +++ b/ceph_deploy/hosts/debian/install.py @@ -141,16 +141,17 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw): install_ceph = kw.pop('install_ceph', False) baseurl = baseurl.strip('/') # Remove trailing slashes - process.run( - distro.conn, - [ - 'wget', - '-O', - 'release.asc', - gpgkey, - ], - stop_on_nonzero=False, - ) + if gpgkey: + process.run( + distro.conn, + [ + 'wget', + '-O', + 'release.asc', + gpgkey, + ], + stop_on_nonzero=False, + ) process.run( distro.conn,