apt_repository: Use correct debug method (#85786)

* Use self.module.debug method instead of non-existent
  self.debug method

Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
pull/85797/head
Abhijeet Kasurde 3 months ago committed by GitHub
parent 0ed37ca899
commit d93f63ecfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
---
minor_changes:
- apt_repository - use correct debug method to print debug message.

@ -508,7 +508,7 @@ class UbuntuSourcesList(SourcesList):
try: try:
rc, out, err = self.module.run_command([self.gpg_bin, '--list-packets', key_file]) rc, out, err = self.module.run_command([self.gpg_bin, '--list-packets', key_file])
except OSError as ex: except OSError as ex:
self.debug(f"Could check key against file {key_file!r}: {ex}") self.module.debug(f"Could check key against file {key_file!r}: {ex}")
continue continue
if key_fingerprint in out: if key_fingerprint in out:

Loading…
Cancel
Save