1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #6323 from aresch/rpm_key_query_fix

Fix rpm_key on system with no gpg keys imported
This commit is contained in:
Michael DeHaan 2014-03-16 12:40:11 -05:00
commit 8d3e2fe79a

View file

@ -170,7 +170,7 @@ class RpmKey:
return stdout, stderr
def is_key_imported(self, keyid):
stdout, stderr = self.execute_command([self.rpm, '-q', 'gpg-pubkey'])
stdout, stderr = self.execute_command([self.rpm, '-qa', 'gpg-pubkey'])
for line in stdout.splitlines():
line = line.strip()
if not line: