From 6edf177713f67cd79a3078da7def29b3c1dcc45f Mon Sep 17 00:00:00 2001 From: Austin Lucas Lake <53884490+austinlucaslake@users.noreply.github.com> Date: Mon, 6 May 2024 15:00:11 -0700 Subject: [PATCH] adding missing extraction of capture group from fingerprint regex --- plugins/modules/gpg_keypair.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/gpg_keypair.py b/plugins/modules/gpg_keypair.py index 2001bb39..947d4bcb 100644 --- a/plugins/modules/gpg_keypair.py +++ b/plugins/modules/gpg_keypair.py @@ -328,7 +328,7 @@ def generate_keypair(module, params, matching_keys, check_mode): executable=get_bin_path('gpg') ) - fingerprint = re.search(r'([0-9a-zA-Z]+)\.rev', stderr) + fingerprint = re.search(r'([0-9a-zA-Z]+)\.rev', stderr).group(1) for subkey in params['subkeys']: if subkey['subkey_type'] in ['RSA', 'DSA', 'ELG']: