From: Alfredo Deza Date: Tue, 1 Apr 2014 18:39:59 +0000 (-0400) Subject: allow to not require a gpg key for repo installs in centos X-Git-Tag: v1.5.0~16^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17d8b5bb48c49382bc2b56281440ba2300c7eb9b;p=ceph-deploy.git allow to not require a gpg key for repo installs in centos Signed-off-by: Alfredo Deza --- diff --git a/ceph_deploy/hosts/centos/install.py b/ceph_deploy/hosts/centos/install.py index 4c92da5..e677a8a 100644 --- a/ceph_deploy/hosts/centos/install.py +++ b/ceph_deploy/hosts/centos/install.py @@ -130,14 +130,15 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw): _type = 'repo-md' baseurl = baseurl.strip('/') # Remove trailing slashes - process.run( - distro.conn, - [ - 'rpm', - '--import', - gpgkey, - ] - ) + if gpgkey: + process.run( + distro.conn, + [ + 'rpm', + '--import', + gpgkey, + ] + ) repo_content = templates.custom_repo.format( repo_name=repo_name,