mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #8104 from AdmiralNemo/patch-1
Correct regex in is_keyid
This commit is contained in:
commit
fe3f6b3253
1 changed files with 1 additions and 1 deletions
|
@ -156,7 +156,7 @@ class RpmKey:
|
|||
|
||||
def is_keyid(self, keystr):
|
||||
"""Verifies if a key, as provided by the user is a keyid"""
|
||||
return re.match('(0x)?(0-9a-f){8}', keystr, flags=re.IGNORECASE)
|
||||
return re.match('(0x)?[0-9a-f]{8}', keystr, flags=re.IGNORECASE)
|
||||
|
||||
def execute_command(self, cmd):
|
||||
if self.syslogging:
|
||||
|
|
Loading…
Reference in a new issue