diff --git a/manifests/repo/rhel.pp b/manifests/repo/rhel.pp index f2271cd46..4aa319f6f 100644 --- a/manifests/repo/rhel.pp +++ b/manifests/repo/rhel.pp @@ -6,7 +6,7 @@ exec { "rpm --import ${package_gpg_key}": path => ['/bin','/usr/bin','/sbin','/usr/sbin'], - onlyif => 'test `rpm -qa | grep gpg-pubkey-056e8e56-468e43f2 | wc -l` -eq 0', + unless => 'rpm -q gpg-pubkey-056e8e56-468e43f2 2>/dev/null', } }